2024-12-14 06:46:11 +00:00
|
|
|
import 'package:freezed_annotation/freezed_annotation.dart';
|
|
|
|
|
|
|
|
part 'link.g.dart';
|
|
|
|
part 'link.freezed.dart';
|
|
|
|
|
|
|
|
@freezed
|
|
|
|
class SnLinkMeta with _$SnLinkMeta {
|
2024-12-14 07:21:34 +00:00
|
|
|
const SnLinkMeta._();
|
|
|
|
|
2024-12-14 06:46:11 +00:00
|
|
|
const factory SnLinkMeta({
|
|
|
|
required int id,
|
|
|
|
required DateTime createdAt,
|
|
|
|
required DateTime updatedAt,
|
|
|
|
required DateTime? deletedAt,
|
|
|
|
required String entryId,
|
|
|
|
required String? icon,
|
|
|
|
required String url,
|
|
|
|
required String? title,
|
|
|
|
required String? image,
|
|
|
|
required String? video,
|
|
|
|
required String? audio,
|
2024-12-14 07:21:34 +00:00
|
|
|
required String? description,
|
2024-12-14 06:46:11 +00:00
|
|
|
required String? siteName,
|
|
|
|
required String? type,
|
|
|
|
}) = _SnLinkMeta;
|
|
|
|
|
|
|
|
factory SnLinkMeta.fromJson(Map<String, dynamic> json) => _$SnLinkMetaFromJson(json);
|
|
|
|
}
|