// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'warehouse_location_dto.dart';

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

_$WarehouseLocationDtoImpl _$$WarehouseLocationDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$WarehouseLocationDtoImpl(
      id: (json['Id'] as num?)?.toInt(),
      name: json['Name'] as String,
      zipcodesZipcode: json['zipcodes_zipcode'] as String?,
      zipcodeAddress: json['zipcode_address'] as String?,
      remark: json['Remark'] as String?,
      isDeleted: json['is_deleted'] as bool? ?? false,
      registeredAt: json['registered_at'] == null
          ? null
          : DateTime.parse(json['registered_at'] as String),
      updatedAt: json['updated_at'] == null
          ? null
          : DateTime.parse(json['updated_at'] as String),
      zipcode: json['zipcode'] == null
          ? null
          : ZipcodeDto.fromJson(json['zipcode'] as Map<String, dynamic>),
    );

Map<String, dynamic> _$$WarehouseLocationDtoImplToJson(
        _$WarehouseLocationDtoImpl instance) =>
    <String, dynamic>{
      'Id': instance.id,
      'Name': instance.name,
      'zipcodes_zipcode': instance.zipcodesZipcode,
      'zipcode_address': instance.zipcodeAddress,
      'Remark': instance.remark,
      'is_deleted': instance.isDeleted,
      'registered_at': instance.registeredAt?.toIso8601String(),
      'updated_at': instance.updatedAt?.toIso8601String(),
      'zipcode': instance.zipcode,
    };

_$WarehouseLocationRequestDtoImpl _$$WarehouseLocationRequestDtoImplFromJson(
        Map<String, dynamic> json) =>
    _$WarehouseLocationRequestDtoImpl(
      name: json['Name'] as String,
      zipcodesZipcode: json['zipcodes_zipcode'] as String?,
      remark: json['Remark'] as String?,
    );

Map<String, dynamic> _$$WarehouseLocationRequestDtoImplToJson(
        _$WarehouseLocationRequestDtoImpl instance) =>
    <String, dynamic>{
      'Name': instance.name,
      'zipcodes_zipcode': instance.zipcodesZipcode,
      'Remark': instance.remark,
    };

_$WarehouseLocationUpdateRequestDtoImpl
    _$$WarehouseLocationUpdateRequestDtoImplFromJson(
            Map<String, dynamic> json) =>
        _$WarehouseLocationUpdateRequestDtoImpl(
          name: json['Name'] as String?,
          zipcodesZipcode: json['zipcodes_zipcode'] as String?,
          remark: json['Remark'] as String?,
        );

Map<String, dynamic> _$$WarehouseLocationUpdateRequestDtoImplToJson(
        _$WarehouseLocationUpdateRequestDtoImpl instance) =>
    <String, dynamic>{
      'Name': instance.name,
      'zipcodes_zipcode': instance.zipcodesZipcode,
      'Remark': instance.remark,
    };

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

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