// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'tag.dart';

// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************

Tag _$TagFromJson(Map<String, dynamic> json) => Tag(
      id: json['id'] as int?,
      familyId: json['family_id'] as int,
      createdByUserId: json['created_by_user_id'] as int,
      name: json['name'] as String,
      type: $enumDecode(_$TagTypeEnumMap, json['type']),
      createdAt: dateFromJson(json['created_at'] as int),
      updatedAt: dateFromJson(json['updated_at'] as int),
      hide: json['hide'] == null ? false : boolFromJson(json['hide'] as int),
    );

Map<String, dynamic> _$TagToJson(Tag instance) => <String, dynamic>{
      'id': instance.id,
      'family_id': instance.familyId,
      'created_by_user_id': instance.createdByUserId,
      'name': instance.name,
      'type': _$TagTypeEnumMap[instance.type]!,
      'hide': boolToJson(instance.hide),
      'created_at': dateToJson(instance.createdAt),
      'updated_at': dateToJson(instance.updatedAt),
    };

const _$TagTypeEnumMap = {
  TagType.note: 'note',
};
