2024-09-07 07:36:06 +00:00
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
|
|
|
|
part 'link.g.dart';
|
|
|
|
|
|
|
|
@JsonSerializable()
|
2024-08-19 11:36:01 +00:00
|
|
|
class LinkMeta {
|
|
|
|
int id;
|
|
|
|
DateTime createdAt;
|
|
|
|
DateTime updatedAt;
|
|
|
|
DateTime? deletedAt;
|
|
|
|
String entryId;
|
|
|
|
String? icon;
|
|
|
|
String url;
|
|
|
|
String? title;
|
|
|
|
String? image;
|
|
|
|
String? video;
|
|
|
|
String? audio;
|
|
|
|
String? description;
|
|
|
|
String? siteName;
|
|
|
|
|
|
|
|
LinkMeta({
|
|
|
|
required this.id,
|
|
|
|
required this.createdAt,
|
|
|
|
required this.updatedAt,
|
|
|
|
required this.deletedAt,
|
|
|
|
required this.entryId,
|
|
|
|
required this.icon,
|
|
|
|
required this.url,
|
|
|
|
required this.title,
|
|
|
|
required this.image,
|
|
|
|
required this.video,
|
|
|
|
required this.audio,
|
|
|
|
required this.description,
|
|
|
|
required this.siteName,
|
|
|
|
});
|
|
|
|
|
2024-09-07 07:36:06 +00:00
|
|
|
factory LinkMeta.fromJson(Map<String, dynamic> json) =>
|
|
|
|
_$LinkMetaFromJson(json);
|
2024-08-19 11:36:01 +00:00
|
|
|
|
2024-09-07 07:36:06 +00:00
|
|
|
Map<String, dynamic> toJson() => _$LinkMetaToJson(this);
|
2024-08-19 11:36:01 +00:00
|
|
|
}
|