// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'zipcode_dto.dart';

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

_$ZipcodeDtoImpl _$$ZipcodeDtoImplFromJson(Map<String, dynamic> json) =>
    _$ZipcodeDtoImpl(
      zipcode: json['zipcode'] as String,
      sido: json['sido'] as String,
      gu: json['gu'] as String,
      etc: json['etc'] as String,
      isDeleted: json['is_deleted'] as bool? ?? false,
      createdAt: json['created_at'] == null
          ? null
          : DateTime.parse(json['created_at'] as String),
      updatedAt: json['updated_at'] == null
          ? null
          : DateTime.parse(json['updated_at'] as String),
    );

Map<String, dynamic> _$$ZipcodeDtoImplToJson(_$ZipcodeDtoImpl instance) =>
    <String, dynamic>{
      'zipcode': instance.zipcode,
      'sido': instance.sido,
      'gu': instance.gu,
      'etc': instance.etc,
      'is_deleted': instance.isDeleted,
      'created_at': instance.createdAt?.toIso8601String(),
      'updated_at': instance.updatedAt?.toIso8601String(),
    };

_$ZipcodeListResponseImpl _$$ZipcodeListResponseImplFromJson(
        Map<String, dynamic> json) =>
    _$ZipcodeListResponseImpl(
      items: (json['data'] as List<dynamic>)
          .map((e) => ZipcodeDto.fromJson(e as Map<String, dynamic>))
          .toList(),
      totalCount: (json['total'] as num?)?.toInt() ?? 0,
      currentPage: (json['page'] as num?)?.toInt() ?? 1,
      totalPages: (json['total_pages'] as num?)?.toInt() ?? 1,
      pageSize: (json['page_size'] as num?)?.toInt(),
    );

Map<String, dynamic> _$$ZipcodeListResponseImplToJson(
        _$ZipcodeListResponseImpl instance) =>
    <String, dynamic>{
      'data': instance.items,
      'total': instance.totalCount,
      'page': instance.currentPage,
      'total_pages': instance.totalPages,
      'page_size': instance.pageSize,
    };

_$HierarchyMetaImpl _$$HierarchyMetaImplFromJson(Map<String, dynamic> json) =>
    _$HierarchyMetaImpl(
      total: (json['total'] as num).toInt(),
      sido: json['sido'] as String?,
      gu: json['gu'] as String?,
    );

Map<String, dynamic> _$$HierarchyMetaImplToJson(_$HierarchyMetaImpl instance) =>
    <String, dynamic>{
      'total': instance.total,
      'sido': instance.sido,
      'gu': instance.gu,
    };

_$HierarchyResponseImpl _$$HierarchyResponseImplFromJson(
        Map<String, dynamic> json) =>
    _$HierarchyResponseImpl(
      data: (json['data'] as List<dynamic>).map((e) => e as String).toList(),
      meta: HierarchyMeta.fromJson(json['meta'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$$HierarchyResponseImplToJson(
        _$HierarchyResponseImpl instance) =>
    <String, dynamic>{
      'data': instance.data,
      'meta': instance.meta,
    };
