35 lines
1.4 KiB
Dart
35 lines
1.4 KiB
Dart
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'shared_note.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
SharedNote _$SharedNoteFromJson(Map<String, dynamic> json) => SharedNote(
|
||
|
id: json['id'] as int?,
|
||
|
familyId: json['family_id'] as int,
|
||
|
createdByUserId: json['created_by_user_id'] as int,
|
||
|
content: json['content'] as String,
|
||
|
color: optionalColorFromJson(json['color'] as String?),
|
||
|
createdAt: dateFromJson(json['created_at'] as int),
|
||
|
updatedAt: dateFromJson(json['updated_at'] as int),
|
||
|
isMarkdown: json['is_markdown'] == null
|
||
|
? false
|
||
|
: boolFromJson(json['is_markdown'] as int),
|
||
|
hide: json['hide'] == null ? false : boolFromJson(json['hide'] as int),
|
||
|
);
|
||
|
|
||
|
Map<String, dynamic> _$SharedNoteToJson(SharedNote instance) =>
|
||
|
<String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'family_id': instance.familyId,
|
||
|
'created_by_user_id': instance.createdByUserId,
|
||
|
'content': instance.content,
|
||
|
'color': optionalColorToJson(instance.color),
|
||
|
'is_markdown': boolToJson(instance.isMarkdown),
|
||
|
'hide': boolToJson(instance.hide),
|
||
|
'created_at': dateToJson(instance.createdAt),
|
||
|
'updated_at': dateToJson(instance.updatedAt),
|
||
|
};
|