import 'package:freezed_annotation/freezed_annotation.dart'; part 'bookmark.freezed.dart'; part 'bookmark.g.dart'; @freezed abstract class Bookmark with _$Bookmark { const factory Bookmark({ required String id, required String documentId, required int pageNumber, @Default('') String label, @Default(0xFF2196F3) int color, required DateTime createdAt, }) = _Bookmark; factory Bookmark.fromJson(Map json) => _$BookmarkFromJson(json); }