// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'kill_request_poultry.dart';

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

_KillRequestPoultry _$KillRequestPoultryFromJson(
  Map<String, dynamic> json,
) => _KillRequestPoultry(
  userprofile: json['userprofile'] == null
      ? null
      : UserProfile.fromJson(json['userprofile'] as Map<String, dynamic>),
  address: json['address'] == null
      ? null
      : Address.fromJson(json['address'] as Map<String, dynamic>),
  poultryOwner: json['poultry_owner'] == null
      ? null
      : PoultryOwner.fromJson(json['poultry_owner'] as Map<String, dynamic>),
  poultryTenant: json['poultry_tenant'] == null
      ? null
      : PoultryTenant.fromJson(json['poultry_tenant'] as Map<String, dynamic>),
  hatching: (json['hatching'] as List<dynamic>?)
      ?.map((e) => Hatching.fromJson(e as Map<String, dynamic>))
      .toList(),
  registerVetHalls: (json['register_vet_halls'] as List<dynamic>?)
      ?.map((e) => (e as num).toInt())
      .toList(),
  allow: json['allow'] == null
      ? null
      : Allow.fromJson(json['allow'] as Map<String, dynamic>),
  provinceAllowChooseKillHouse: json['province_allow_choose_kill_house'] == null
      ? null
      : ProvinceAllowChooseKillHouse.fromJson(
          json['province_allow_choose_kill_house'] as Map<String, dynamic>,
        ),
  provinceAllowSellFree: json['province_allow_sell_free'] as bool?,
  vetFarm: json['vet_farm'] == null
      ? null
      : VetFarm.fromJson(json['vet_farm'] as Map<String, dynamic>),
  lastHatchingDiffrentRequestQuantity:
      json['last_hatching_diffrent_request_quantity'] == null
      ? null
      : LastHatchingDifferentRequestQuantity.fromJson(
          json['last_hatching_diffrent_request_quantity']
              as Map<String, dynamic>,
        ),
  userBankInfo: json['user_bank_info'] == null
      ? null
      : UserBankInfo.fromJson(json['user_bank_info'] as Map<String, dynamic>),
  leftOverOwnHatching: (json['left_over_own_hatching'] as num?)?.toInt(),
  key: json['key'] as String?,
  trash: json['trash'] as bool?,
  ownerIdForeignKey: (json['owner_id_foreign_key'] as num?)?.toInt(),
  userIdForeignKey: (json['user_id_foreign_key'] as num?)?.toInt(),
  addressIdForeignKey: (json['address_id_foreign_key'] as num?)?.toInt(),
  hasChainCompany: json['has_chain_company'] as bool?,
  userBankIdForeignKey: (json['user_bank_id_foreign_key'] as num?)?.toInt(),
  cityOperator: json['city_operator'] as String?,
  unitName: json['unit_name'] as String?,
  gisCode: json['gis_code'] as String?,
  operatingLicenceCapacity: (json['operating_licence_capacity'] as num?)
      ?.toInt(),
  numberOfHalls: (json['number_of_halls'] as num?)?.toInt(),
  tenant: json['tenant'] as bool?,
  hasTenant: json['has_tenant'] as bool?,
  personType: json['person_type'] as String?,
  economicCode: json['economic_code'] as String?,
  systemCode: json['system_code'] as String?,
  epidemiologicalCode: json['epidemiological_code'] as String?,
  breedingUniqueId: json['breeding_unique_id'] as String?,
  totalCapacity: (json['total_capacity'] as num?)?.toInt(),
  licenceNumber: json['licence_number'] as String?,
  healthCertificateNumber: json['health_certificate_number'] as String?,
  numberOfRequests: (json['number_of_requests'] as num?)?.toInt(),
  hatchingDate: json['hatching_date'] as String?,
  lastPartyDate: json['last_party_date'] as String?,
  numberOfIncubators: (json['number_of_incubators'] as num?)?.toInt(),
  herdAgeByDay: (json['herd_age_by_day'] as num?)?.toInt(),
  herdAgeByWeek: (json['herd_age_by_week'] as num?)?.toInt(),
  numberOfParty: (json['number_of_party'] as num?)?.toInt(),
  communicationType: json['communication_type'] as String?,
  cooperative: json['cooperative'] as String?,
  dateOfRegister: json['date_of_register'] as String?,
  unitStatus: json['unit_status'] as String?,
  active: json['active'] as bool?,
  identityDocuments: json['identity_documents'] as String?,
  samasatUserCode: json['samasat_user_code'] as String?,
  baseOrder: (json['base_order'] as num?)?.toInt(),
  incubationDate: json['incubation_date'] as String?,
  walletAmount: (json['wallet_amount'] as num?)?.toInt(),
  city: (json['city'] as num?)?.toInt(),
  cityNumber: (json['city_number'] as num?)?.toInt(),
  cityName: json['city_name'] as String?,
  provinceNumber: (json['province_number'] as num?)?.toInt(),
  provinceName: json['province_name'] as String?,
  walletIdForeignKey: (json['wallet_id_foreign_key'] as num?)?.toInt(),
  poultryIdKey: (json['poultry_id_key'] as num?)?.toInt(),
  lat: (json['lat'] as num?)?.toDouble(),
  long: (json['long'] as num?)?.toDouble(),
  date: json['date'] as String?,
  killingAveAge: (json['killing_ave_age'] as num?)?.toInt(),
  activeLeftOver: (json['active_left_over'] as num?)?.toInt(),
  killingAveCount: (json['killing_ave_count'] as num?)?.toInt(),
  killingAveWeight: (json['killing_ave_weight'] as num?)?.toDouble(),
  killingLiveWeight: (json['killing_live_weight'] as num?)?.toDouble(),
  killingCarcassesWeight: (json['killing_carcasses_weight'] as num?)
      ?.toDouble(),
  killingLossWeightPercent: (json['killing_loss_weight_percent'] as num?)
      ?.toDouble(),
  realKillingAveWeight: (json['real_killing_ave_weight'] as num?)?.toDouble(),
  realKillingLiveWeight: (json['real_killing_live_weight'] as num?)?.toDouble(),
  realKillingCarcassesWeight: (json['real_killing_carcasses_weight'] as num?)
      ?.toDouble(),
  realKillingLossWeightPercent:
      (json['real_killing_loss_weight_percent'] as num?)?.toDouble(),
  interestLicenseId: (json['interest_license_id'] as num?)?.toInt(),
  orderLimit: json['order_limit'] as bool?,
  owner: (json['owner'] as num?)?.toInt(),
  wallet: (json['wallet'] as num?)?.toInt(),
);

Map<String, dynamic> _$KillRequestPoultryToJson(_KillRequestPoultry instance) =>
    <String, dynamic>{
      'userprofile': instance.userprofile,
      'address': instance.address,
      'poultry_owner': instance.poultryOwner,
      'poultry_tenant': instance.poultryTenant,
      'hatching': instance.hatching,
      'register_vet_halls': instance.registerVetHalls,
      'allow': instance.allow,
      'province_allow_choose_kill_house': instance.provinceAllowChooseKillHouse,
      'province_allow_sell_free': instance.provinceAllowSellFree,
      'vet_farm': instance.vetFarm,
      'last_hatching_diffrent_request_quantity':
          instance.lastHatchingDiffrentRequestQuantity,
      'user_bank_info': instance.userBankInfo,
      'left_over_own_hatching': instance.leftOverOwnHatching,
      'key': instance.key,
      'trash': instance.trash,
      'owner_id_foreign_key': instance.ownerIdForeignKey,
      'user_id_foreign_key': instance.userIdForeignKey,
      'address_id_foreign_key': instance.addressIdForeignKey,
      'has_chain_company': instance.hasChainCompany,
      'user_bank_id_foreign_key': instance.userBankIdForeignKey,
      'city_operator': instance.cityOperator,
      'unit_name': instance.unitName,
      'gis_code': instance.gisCode,
      'operating_licence_capacity': instance.operatingLicenceCapacity,
      'number_of_halls': instance.numberOfHalls,
      'tenant': instance.tenant,
      'has_tenant': instance.hasTenant,
      'person_type': instance.personType,
      'economic_code': instance.economicCode,
      'system_code': instance.systemCode,
      'epidemiological_code': instance.epidemiologicalCode,
      'breeding_unique_id': instance.breedingUniqueId,
      'total_capacity': instance.totalCapacity,
      'licence_number': instance.licenceNumber,
      'health_certificate_number': instance.healthCertificateNumber,
      'number_of_requests': instance.numberOfRequests,
      'hatching_date': instance.hatchingDate,
      'last_party_date': instance.lastPartyDate,
      'number_of_incubators': instance.numberOfIncubators,
      'herd_age_by_day': instance.herdAgeByDay,
      'herd_age_by_week': instance.herdAgeByWeek,
      'number_of_party': instance.numberOfParty,
      'communication_type': instance.communicationType,
      'cooperative': instance.cooperative,
      'date_of_register': instance.dateOfRegister,
      'unit_status': instance.unitStatus,
      'active': instance.active,
      'identity_documents': instance.identityDocuments,
      'samasat_user_code': instance.samasatUserCode,
      'base_order': instance.baseOrder,
      'incubation_date': instance.incubationDate,
      'wallet_amount': instance.walletAmount,
      'city': instance.city,
      'city_number': instance.cityNumber,
      'city_name': instance.cityName,
      'province_number': instance.provinceNumber,
      'province_name': instance.provinceName,
      'wallet_id_foreign_key': instance.walletIdForeignKey,
      'poultry_id_key': instance.poultryIdKey,
      'lat': instance.lat,
      'long': instance.long,
      'date': instance.date,
      'killing_ave_age': instance.killingAveAge,
      'active_left_over': instance.activeLeftOver,
      'killing_ave_count': instance.killingAveCount,
      'killing_ave_weight': instance.killingAveWeight,
      'killing_live_weight': instance.killingLiveWeight,
      'killing_carcasses_weight': instance.killingCarcassesWeight,
      'killing_loss_weight_percent': instance.killingLossWeightPercent,
      'real_killing_ave_weight': instance.realKillingAveWeight,
      'real_killing_live_weight': instance.realKillingLiveWeight,
      'real_killing_carcasses_weight': instance.realKillingCarcassesWeight,
      'real_killing_loss_weight_percent': instance.realKillingLossWeightPercent,
      'interest_license_id': instance.interestLicenseId,
      'order_limit': instance.orderLimit,
      'owner': instance.owner,
      'wallet': instance.wallet,
    };

_UserProfile _$UserProfileFromJson(Map<String, dynamic> json) => _UserProfile(
  userKey: json['user_key'] as String?,
  baseOrder: (json['base_order'] as num?)?.toInt(),
  fullName: json['full_name'] as String?,
  mobile: json['mobile'] as String?,
  city: json['city'] as String?,
  province: json['province'] as String?,
  breedingUniqueId: json['breeding_unique_id'] as String?,
);

Map<String, dynamic> _$UserProfileToJson(_UserProfile instance) =>
    <String, dynamic>{
      'user_key': instance.userKey,
      'base_order': instance.baseOrder,
      'full_name': instance.fullName,
      'mobile': instance.mobile,
      'city': instance.city,
      'province': instance.province,
      'breeding_unique_id': instance.breedingUniqueId,
    };

_Address _$AddressFromJson(Map<String, dynamic> json) => _Address(
  province: json['province'] == null
      ? null
      : Province.fromJson(json['province'] as Map<String, dynamic>),
  city: json['city'] == null
      ? null
      : City.fromJson(json['city'] as Map<String, dynamic>),
  address: json['address'] as String?,
  postalCode: json['postal_code'] as String?,
);

Map<String, dynamic> _$AddressToJson(_Address instance) => <String, dynamic>{
  'province': instance.province,
  'city': instance.city,
  'address': instance.address,
  'postal_code': instance.postalCode,
};

_Province _$ProvinceFromJson(Map<String, dynamic> json) =>
    _Province(key: json['key'] as String?, name: json['name'] as String?);

Map<String, dynamic> _$ProvinceToJson(_Province instance) => <String, dynamic>{
  'key': instance.key,
  'name': instance.name,
};

_City _$CityFromJson(Map<String, dynamic> json) =>
    _City(key: json['key'] as String?, name: json['name'] as String?);

Map<String, dynamic> _$CityToJson(_City instance) => <String, dynamic>{
  'key': instance.key,
  'name': instance.name,
};

_PoultryOwner _$PoultryOwnerFromJson(Map<String, dynamic> json) =>
    _PoultryOwner(
      fullName: json['full_name'] as String?,
      mobile: json['mobile'] as String?,
      unitName: json['unit_name'] as String?,
      numberOfHalls: (json['number_of_halls'] as num?)?.toInt(),
      breedingUniqueId: json['breeding_unique_id'] as String?,
    );

Map<String, dynamic> _$PoultryOwnerToJson(_PoultryOwner instance) =>
    <String, dynamic>{
      'full_name': instance.fullName,
      'mobile': instance.mobile,
      'unit_name': instance.unitName,
      'number_of_halls': instance.numberOfHalls,
      'breeding_unique_id': instance.breedingUniqueId,
    };

_PoultryTenant _$PoultryTenantFromJson(Map<String, dynamic> json) =>
    _PoultryTenant(
      key: json['key'] as String?,
      firstName: json['first_name'] as String?,
      lastName: json['last_name'] as String?,
      fullName: json['full_name'] as String?,
      mobile: json['mobile'] as String?,
      nationalId: json['national_id'] as String?,
      breedingUniqueId: json['breeding_unique_id'] as String?,
    );

Map<String, dynamic> _$PoultryTenantToJson(_PoultryTenant instance) =>
    <String, dynamic>{
      'key': instance.key,
      'first_name': instance.firstName,
      'last_name': instance.lastName,
      'full_name': instance.fullName,
      'mobile': instance.mobile,
      'national_id': instance.nationalId,
      'breeding_unique_id': instance.breedingUniqueId,
    };

_Hatching _$HatchingFromJson(Map<String, dynamic> json) => _Hatching(
  poultryKey: json['poultry_key'] as String?,
  poultryHatchingKey: json['poultry_hatching_key'] as String?,
  poultry: json['poultry'] as String?,
  quantity: (json['quantity'] as num?)?.toInt(),
  losses: (json['losses'] as num?)?.toInt(),
  leftOver: (json['left_over'] as num?)?.toInt(),
  outProvinceKilledQuantity: (json['out_province_killed_quantity'] as num?)
      ?.toDouble(),
  exportKilledQuantity: (json['export_killed_quantity'] as num?)?.toDouble(),
  hall: (json['hall'] as num?)?.toInt(),
  date: json['date'] as String?,
  period: (json['period'] as num?)?.toInt(),
  state: json['state'] as String?,
  age: (json['age'] as num?)?.toInt(),
);

Map<String, dynamic> _$HatchingToJson(_Hatching instance) => <String, dynamic>{
  'poultry_key': instance.poultryKey,
  'poultry_hatching_key': instance.poultryHatchingKey,
  'poultry': instance.poultry,
  'quantity': instance.quantity,
  'losses': instance.losses,
  'left_over': instance.leftOver,
  'out_province_killed_quantity': instance.outProvinceKilledQuantity,
  'export_killed_quantity': instance.exportKilledQuantity,
  'hall': instance.hall,
  'date': instance.date,
  'period': instance.period,
  'state': instance.state,
  'age': instance.age,
};

_Allow _$AllowFromJson(Map<String, dynamic> json) =>
    _Allow(city: json['city'] as bool?, province: json['province'] as bool?);

Map<String, dynamic> _$AllowToJson(_Allow instance) => <String, dynamic>{
  'city': instance.city,
  'province': instance.province,
};

_ProvinceAllowChooseKillHouse _$ProvinceAllowChooseKillHouseFromJson(
  Map<String, dynamic> json,
) => _ProvinceAllowChooseKillHouse(
  allowState: json['allow_state'] as bool?,
  mandatory: json['mandatory'] as bool?,
);

Map<String, dynamic> _$ProvinceAllowChooseKillHouseToJson(
  _ProvinceAllowChooseKillHouse instance,
) => <String, dynamic>{
  'allow_state': instance.allowState,
  'mandatory': instance.mandatory,
};

_VetFarm _$VetFarmFromJson(Map<String, dynamic> json) => _VetFarm(
  fullName: json['full_name'] as String?,
  mobile: json['mobile'] as String?,
  city: json['city'] as String?,
  province: json['province'] as String?,
);

Map<String, dynamic> _$VetFarmToJson(_VetFarm instance) => <String, dynamic>{
  'full_name': instance.fullName,
  'mobile': instance.mobile,
  'city': instance.city,
  'province': instance.province,
};

_LastHatchingDifferentRequestQuantity
_$LastHatchingDifferentRequestQuantityFromJson(Map<String, dynamic> json) =>
    _LastHatchingDifferentRequestQuantity(
      leftExportQuantity: (json['left_export_quantity'] as num?)?.toDouble(),
      leftPoultryOutProvince: (json['left_poultry_out_province'] as num?)
          ?.toDouble(),
      lastHatchingRemainQuantity:
          (json['last_hatching_remain_quantity'] as num?)?.toInt(),
    );

Map<String, dynamic> _$LastHatchingDifferentRequestQuantityToJson(
  _LastHatchingDifferentRequestQuantity instance,
) => <String, dynamic>{
  'left_export_quantity': instance.leftExportQuantity,
  'left_poultry_out_province': instance.leftPoultryOutProvince,
  'last_hatching_remain_quantity': instance.lastHatchingRemainQuantity,
};

_UserBankInfo _$UserBankInfoFromJson(Map<String, dynamic> json) =>
    _UserBankInfo(
      key: json['key'] as String?,
      nameOfBankUser: json['name_of_bank_user'] as String?,
      bankName: json['bank_name'] as String?,
      card: json['card'] as String?,
      shaba: json['shaba'] as String?,
      account: json['account'] as String?,
      userBankIdKey: (json['user_bank_id_key'] as num?)?.toInt(),
      provinceName: json['province_name'] as String?,
    );

Map<String, dynamic> _$UserBankInfoToJson(_UserBankInfo instance) =>
    <String, dynamic>{
      'key': instance.key,
      'name_of_bank_user': instance.nameOfBankUser,
      'bank_name': instance.bankName,
      'card': instance.card,
      'shaba': instance.shaba,
      'account': instance.account,
      'user_bank_id_key': instance.userBankIdKey,
      'province_name': instance.provinceName,
    };
