// 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,
      title: json['title'] as String,
      color: optionalColorFromJson(json['color'] as String?),
      createdAt: dateFromJson(json['created_at'] as int),
      updatedAt: dateFromJson(json['updated_at'] as int),
      tagIds: _tagIdsFromJson(json['tag_ids'] as String),
      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,
      'title': instance.title,
      'tag_ids': _tagIdsToJson(instance.tagIds),
      'color': optionalColorToJson(instance.color),
      'is_markdown': boolToJson(instance.isMarkdown),
      'hide': boolToJson(instance.hide),
      'created_at': dateToJson(instance.createdAt),
      'updated_at': dateToJson(instance.updatedAt),
    };
