2026-06-21 03:18:00 +08:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
|
|
part of 'bookmark.dart';
|
|
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
|
// JsonSerializableGenerator
|
|
|
|
|
// **************************************************************************
|
|
|
|
|
|
|
|
|
|
_$BookmarkImpl _$$BookmarkImplFromJson(Map<String, dynamic> json) =>
|
|
|
|
|
_$BookmarkImpl(
|
|
|
|
|
id: json['id'] as String,
|
|
|
|
|
documentId: json['documentId'] as String,
|
|
|
|
|
pageNumber: (json['pageNumber'] as num).toInt(),
|
|
|
|
|
label: json['label'] as String? ?? '',
|
|
|
|
|
color: (json['color'] as num?)?.toInt() ?? 0xFF2196F3,
|
|
|
|
|
createdAt: DateTime.parse(json['createdAt'] as String),
|
2026-06-25 00:00:16 +08:00
|
|
|
anchorLeft: (json['anchorLeft'] as num?)?.toDouble(),
|
|
|
|
|
anchorTop: (json['anchorTop'] as num?)?.toDouble(),
|
|
|
|
|
anchorRight: (json['anchorRight'] as num?)?.toDouble(),
|
|
|
|
|
anchorBottom: (json['anchorBottom'] as num?)?.toDouble(),
|
|
|
|
|
charIndex: (json['charIndex'] as num?)?.toInt(),
|
2026-06-21 03:18:00 +08:00
|
|
|
);
|
|
|
|
|
|
|
|
|
|
Map<String, dynamic> _$$BookmarkImplToJson(_$BookmarkImpl instance) =>
|
|
|
|
|
<String, dynamic>{
|
|
|
|
|
'id': instance.id,
|
|
|
|
|
'documentId': instance.documentId,
|
|
|
|
|
'pageNumber': instance.pageNumber,
|
|
|
|
|
'label': instance.label,
|
|
|
|
|
'color': instance.color,
|
|
|
|
|
'createdAt': instance.createdAt.toIso8601String(),
|
2026-06-25 00:00:16 +08:00
|
|
|
'anchorLeft': instance.anchorLeft,
|
|
|
|
|
'anchorTop': instance.anchorTop,
|
|
|
|
|
'anchorRight': instance.anchorRight,
|
|
|
|
|
'anchorBottom': instance.anchorBottom,
|
|
|
|
|
'charIndex': instance.charIndex,
|
2026-06-21 03:18:00 +08:00
|
|
|
};
|