// 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),
    );

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