Surface/lib/types/link.dart

29 lines
726 B
Dart
Raw Permalink Normal View History

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 {
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,
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);
}