// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'waiting_arrival.dart';

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

_WaitingArrivalModel _$WaitingArrivalModelFromJson(Map<String, dynamic> json) =>
    _WaitingArrivalModel(
      count: (json['count'] as num).toInt(),
      next: json['next'] as String?,
      previous: json['previous'] as String?,
      results: (json['results'] as List<dynamic>)
          .map((e) => ResultModel.fromJson(e as Map<String, dynamic>))
          .toList(),
    );

Map<String, dynamic> _$WaitingArrivalModelToJson(
  _WaitingArrivalModel instance,
) => <String, dynamic>{
  'count': instance.count,
  'next': instance.next,
  'previous': instance.previous,
  'results': instance.results,
};

_ResultModel _$ResultModelFromJson(Map<String, dynamic> json) => _ResultModel(
  id: (json['id'] as num?)?.toInt(),
  product: json['product'] == null
      ? null
      : ProductModel.fromJson(json['product'] as Map<String, dynamic>),
  killHouse: json['kill_house'] == null
      ? null
      : KillHouseModel.fromJson(json['kill_house'] as Map<String, dynamic>),
  toKillHouse: json['to_kill_house'],
  steward: json['steward'],
  toSteward: json['to_steward'] == null
      ? null
      : ToStewardModel.fromJson(json['to_steward'] as Map<String, dynamic>),
  guilds: json['guilds'],
  toGuilds: json['to_guilds'],
  toColdHouse: json['to_cold_house'],
  indexWeight: (json['index_weight'] as num?)?.toInt(),
  dateTimestamp: (json['date_timestamp'] as num?)?.toInt(),
  newState: (json['new_state'] as num?)?.toInt(),
  newReceiverState: (json['new_receiver_state'] as num?)?.toInt(),
  newAllocationState: (json['new_allocation_state'] as num?)?.toInt(),
  key: json['key'] as String?,
  createDate: json['create_date'] as String?,
  modifyDate: json['modify_date'] as String?,
  trash: json['trash'] as bool?,
  numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(),
  realNumberOfCarcasses: (json['real_number_of_carcasses'] as num?)?.toInt(),
  receiverRealNumberOfCarcasses:
      (json['receiver_real_number_of_carcasses'] as num?)?.toInt(),
  weightOfCarcasses: (json['weight_of_carcasses'] as num?)?.toDouble(),
  realWeightOfCarcasses: (json['real_weight_of_carcasses'] as num?)?.toDouble(),
  receiverRealWeightOfCarcasses:
      (json['receiver_real_weight_of_carcasses'] as num?)?.toDouble(),
  weightLossOfCarcasses: (json['weight_loss_of_carcasses'] as num?)?.toDouble(),
  finalRegistration: json['final_registration'] as bool?,
  sellType: json['sell_type'] as String?,
  productName: json['product_name'] as String?,
  sellerType: json['seller_type'] as String?,
  type: json['type'] as String?,
  saleType: json['sale_type'] as String?,
  allocationType: json['allocation_type'] as String?,
  systemRegistrationCode: json['system_registration_code'] as bool?,
  registrationCode: (json['registration_code'] as num?)?.toInt(),
  amount: (json['amount'] as num?)?.toInt(),
  totalAmount: (json['total_amount'] as num?)?.toInt(),
  totalAmountPaid: (json['total_amount_paid'] as num?)?.toInt(),
  totalAmountRemain: (json['total_amount_remain'] as num?)?.toInt(),
  loggedRegistrationCode: json['logged_registration_code'],
  state: json['state'] as String?,
  receiverState: json['receiver_state'] as String?,
  allocationState: json['allocation_state'] as String?,
  date: json['date'] as String?,
  role: json['role'],
  stewardTempKey: json['steward_temp_key'],
  approvedPriceStatus: json['approved_price_status'] as bool?,
  calculateStatus: json['calculate_status'] as bool?,
  temporaryTrash: json['temporary_trash'] as bool?,
  temporaryDeleted: json['temporary_deleted'] as bool?,
  createdBy: json['created_by'],
  modifiedBy: json['modified_by'],
  wareHouse: json['ware_house'],
  stewardWareHouse: json['steward_ware_house'],
  car: json['car'],
  dispenser: json['dispenser'],
);

Map<String, dynamic> _$ResultModelToJson(
  _ResultModel instance,
) => <String, dynamic>{
  'id': instance.id,
  'product': instance.product,
  'kill_house': instance.killHouse,
  'to_kill_house': instance.toKillHouse,
  'steward': instance.steward,
  'to_steward': instance.toSteward,
  'guilds': instance.guilds,
  'to_guilds': instance.toGuilds,
  'to_cold_house': instance.toColdHouse,
  'index_weight': instance.indexWeight,
  'date_timestamp': instance.dateTimestamp,
  'new_state': instance.newState,
  'new_receiver_state': instance.newReceiverState,
  'new_allocation_state': instance.newAllocationState,
  'key': instance.key,
  'create_date': instance.createDate,
  'modify_date': instance.modifyDate,
  'trash': instance.trash,
  'number_of_carcasses': instance.numberOfCarcasses,
  'real_number_of_carcasses': instance.realNumberOfCarcasses,
  'receiver_real_number_of_carcasses': instance.receiverRealNumberOfCarcasses,
  'weight_of_carcasses': instance.weightOfCarcasses,
  'real_weight_of_carcasses': instance.realWeightOfCarcasses,
  'receiver_real_weight_of_carcasses': instance.receiverRealWeightOfCarcasses,
  'weight_loss_of_carcasses': instance.weightLossOfCarcasses,
  'final_registration': instance.finalRegistration,
  'sell_type': instance.sellType,
  'product_name': instance.productName,
  'seller_type': instance.sellerType,
  'type': instance.type,
  'sale_type': instance.saleType,
  'allocation_type': instance.allocationType,
  'system_registration_code': instance.systemRegistrationCode,
  'registration_code': instance.registrationCode,
  'amount': instance.amount,
  'total_amount': instance.totalAmount,
  'total_amount_paid': instance.totalAmountPaid,
  'total_amount_remain': instance.totalAmountRemain,
  'logged_registration_code': instance.loggedRegistrationCode,
  'state': instance.state,
  'receiver_state': instance.receiverState,
  'allocation_state': instance.allocationState,
  'date': instance.date,
  'role': instance.role,
  'steward_temp_key': instance.stewardTempKey,
  'approved_price_status': instance.approvedPriceStatus,
  'calculate_status': instance.calculateStatus,
  'temporary_trash': instance.temporaryTrash,
  'temporary_deleted': instance.temporaryDeleted,
  'created_by': instance.createdBy,
  'modified_by': instance.modifiedBy,
  'ware_house': instance.wareHouse,
  'steward_ware_house': instance.stewardWareHouse,
  'car': instance.car,
  'dispenser': instance.dispenser,
};

_ProductModel _$ProductModelFromJson(Map<String, dynamic> json) =>
    _ProductModel(weightAverage: (json['weight_average'] as num?)?.toDouble());

Map<String, dynamic> _$ProductModelToJson(_ProductModel instance) =>
    <String, dynamic>{'weight_average': instance.weightAverage};

_ToStewardModel _$ToStewardModelFromJson(Map<String, dynamic> json) =>
    _ToStewardModel(
      id: (json['id'] as num?)?.toInt(),
      user: json['user'] == null
          ? null
          : ToStewardUserModel.fromJson(json['user'] as Map<String, dynamic>),
      address: json['address'] == null
          ? null
          : AddressModel.fromJson(json['address'] as Map<String, dynamic>),
      guildAreaActivity: json['guild_area_activity'] == null
          ? null
          : GuildAreaActivityModel.fromJson(
              json['guild_area_activity'] as Map<String, dynamic>,
            ),
      guildTypeActivity: json['guild_type_activity'] == null
          ? null
          : GuildTypeActivityModel.fromJson(
              json['guild_type_activity'] as Map<String, dynamic>,
            ),
      killHouse: json['kill_house'] as List<dynamic>?,
      stewardKillHouse: json['steward_kill_house'] as List<dynamic>?,
      stewards: json['stewards'] as List<dynamic>?,
      getPosStatus: json['get_pos_status'] == null
          ? null
          : GetPosStatusModel.fromJson(
              json['get_pos_status'] as Map<String, dynamic>,
            ),
      key: json['key'] as String?,
      createDate: json['create_date'] as String?,
      modifyDate: json['modify_date'] as String?,
      trash: json['trash'] as bool?,
      active: json['active'] as bool?,
      guildsId: json['guilds_id'] as String?,
      licenseNumber: json['license_number'] as String?,
      guildsName: json['guilds_name'] as String?,
      typeActivity: json['type_activity'] as String?,
      areaActivity: json['area_activity'] as String?,
      steward: json['steward'] as bool?,
      hasPos: json['has_pos'] as bool?,
      provinceAcceptState: json['province_accept_state'] as String?,
    );

Map<String, dynamic> _$ToStewardModelToJson(_ToStewardModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'user': instance.user,
      'address': instance.address,
      'guild_area_activity': instance.guildAreaActivity,
      'guild_type_activity': instance.guildTypeActivity,
      'kill_house': instance.killHouse,
      'steward_kill_house': instance.stewardKillHouse,
      'stewards': instance.stewards,
      'get_pos_status': instance.getPosStatus,
      'key': instance.key,
      'create_date': instance.createDate,
      'modify_date': instance.modifyDate,
      'trash': instance.trash,
      'active': instance.active,
      'guilds_id': instance.guildsId,
      'license_number': instance.licenseNumber,
      'guilds_name': instance.guildsName,
      'type_activity': instance.typeActivity,
      'area_activity': instance.areaActivity,
      'steward': instance.steward,
      'has_pos': instance.hasPos,
      'province_accept_state': instance.provinceAcceptState,
    };

_ToStewardUserModel _$ToStewardUserModelFromJson(Map<String, dynamic> json) =>
    _ToStewardUserModel(
      fullname: json['fullname'] as String?,
      firstName: json['first_name'] as String?,
      lastName: json['last_name'] as String?,
      mobile: json['mobile'] as String?,
      nationalId: json['national_id'] as String?,
      city: json['city'] as String?,
    );

Map<String, dynamic> _$ToStewardUserModelToJson(_ToStewardUserModel instance) =>
    <String, dynamic>{
      'fullname': instance.fullname,
      'first_name': instance.firstName,
      'last_name': instance.lastName,
      'mobile': instance.mobile,
      'national_id': instance.nationalId,
      'city': instance.city,
    };

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

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

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

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

_AddressModel _$AddressModelFromJson(Map<String, dynamic> json) =>
    _AddressModel(
      province: json['province'] == null
          ? null
          : ToStewardProvinceModel.fromJson(
              json['province'] as Map<String, dynamic>,
            ),
      city: json['city'] == null
          ? null
          : ToStewardCityModel.fromJson(json['city'] as Map<String, dynamic>),
      address: json['address'] as String?,
      postalCode: json['postal_code'] as String?,
    );

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

_GuildAreaActivityModel _$GuildAreaActivityModelFromJson(
  Map<String, dynamic> json,
) => _GuildAreaActivityModel(
  key: json['key'] as String?,
  title: json['title'] as String?,
);

Map<String, dynamic> _$GuildAreaActivityModelToJson(
  _GuildAreaActivityModel instance,
) => <String, dynamic>{'key': instance.key, 'title': instance.title};

_GuildTypeActivityModel _$GuildTypeActivityModelFromJson(
  Map<String, dynamic> json,
) => _GuildTypeActivityModel(
  key: json['key'] as String?,
  title: json['title'] as String?,
);

Map<String, dynamic> _$GuildTypeActivityModelToJson(
  _GuildTypeActivityModel instance,
) => <String, dynamic>{'key': instance.key, 'title': instance.title};

_GetPosStatusModel _$GetPosStatusModelFromJson(Map<String, dynamic> json) =>
    _GetPosStatusModel(
      lenActiveSessions: (json['len_active_sessions'] as num?)?.toInt(),
      hasPons: json['has_pons'] as bool?,
      hasActivePons: json['has_active_pons'] as bool?,
    );

Map<String, dynamic> _$GetPosStatusModelToJson(_GetPosStatusModel instance) =>
    <String, dynamic>{
      'len_active_sessions': instance.lenActiveSessions,
      'has_pons': instance.hasPons,
      'has_active_pons': instance.hasActivePons,
    };

_KillHouseModel _$KillHouseModelFromJson(Map<String, dynamic> json) =>
    _KillHouseModel(
      key: json['key'] as String?,
      operator: json['kill_house_operator'] == null
          ? null
          : KillHouseOperatorModel.fromJson(
              json['kill_house_operator'] as Map<String, dynamic>,
            ),
      name: json['name'] as String?,
      killer: json['killer'] as bool?,
    );

Map<String, dynamic> _$KillHouseModelToJson(_KillHouseModel instance) =>
    <String, dynamic>{
      'key': instance.key,
      'kill_house_operator': instance.operator,
      'name': instance.name,
      'killer': instance.killer,
    };

_KillHouseOperatorModel _$KillHouseOperatorModelFromJson(
  Map<String, dynamic> json,
) => _KillHouseOperatorModel(
  user: json['user'] == null
      ? null
      : UserModel.fromJson(json['user'] as Map<String, dynamic>),
);

Map<String, dynamic> _$KillHouseOperatorModelToJson(
  _KillHouseOperatorModel instance,
) => <String, dynamic>{'user': instance.user};

_UserModel _$UserModelFromJson(Map<String, dynamic> json) => _UserModel(
  fullname: json['fullname'] as String?,
  firstName: json['first_name'] as String?,
  lastName: json['last_name'] as String?,
  baseOrder: (json['base_order'] as num?)?.toInt(),
  mobile: json['mobile'] as String?,
  nationalId: json['national_id'] as String?,
  nationalCode: json['national_code'] as String?,
  key: json['key'] as String?,
  city: json['city'] == null
      ? null
      : CityModel.fromJson(json['city'] as Map<String, dynamic>),
  unitName: json['unit_name'] as String?,
  unitNationalId: json['unit_national_id'] as String?,
  unitRegistrationNumber: json['unit_registration_number'] as String?,
  unitEconomicalNumber: json['unit_economical_number'] as String?,
  unitProvince: json['unit_province'] as String?,
  unitCity: json['unit_city'] as String?,
  unitPostalCode: json['unit_postal_code'] as String?,
  unitAddress: json['unit_address'] as String?,
);

Map<String, dynamic> _$UserModelToJson(_UserModel instance) =>
    <String, dynamic>{
      'fullname': instance.fullname,
      'first_name': instance.firstName,
      'last_name': instance.lastName,
      'base_order': instance.baseOrder,
      'mobile': instance.mobile,
      'national_id': instance.nationalId,
      'national_code': instance.nationalCode,
      'key': instance.key,
      'city': instance.city,
      'unit_name': instance.unitName,
      'unit_national_id': instance.unitNationalId,
      'unit_registration_number': instance.unitRegistrationNumber,
      'unit_economical_number': instance.unitEconomicalNumber,
      'unit_province': instance.unitProvince,
      'unit_city': instance.unitCity,
      'unit_postal_code': instance.unitPostalCode,
      'unit_address': instance.unitAddress,
    };

_CityModel _$CityModelFromJson(Map<String, dynamic> json) => _CityModel(
  id: (json['id'] as num?)?.toInt(),
  key: json['key'] as String?,
  createDate: json['create_date'] as String?,
  modifyDate: json['modify_date'] as String?,
  trash: json['trash'] as bool?,
  provinceIdForeignKey: (json['province_id_foreign_key'] as num?)?.toInt(),
  cityIdKey: (json['city_id_key'] as num?)?.toInt(),
  name: json['name'] as String?,
  productPrice: (json['product_price'] as num?)?.toDouble(),
  provinceCenter: json['province_center'] as bool?,
  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?,
  createdBy: json['created_by'],
  modifiedBy: json['modified_by'],
  province: (json['province'] as num?)?.toInt(),
);

Map<String, dynamic> _$CityModelToJson(_CityModel instance) =>
    <String, dynamic>{
      'id': instance.id,
      'key': instance.key,
      'create_date': instance.createDate,
      'modify_date': instance.modifyDate,
      'trash': instance.trash,
      'province_id_foreign_key': instance.provinceIdForeignKey,
      'city_id_key': instance.cityIdKey,
      'name': instance.name,
      'product_price': instance.productPrice,
      'province_center': instance.provinceCenter,
      'city_number': instance.cityNumber,
      'city_name': instance.cityName,
      'province_number': instance.provinceNumber,
      'province_name': instance.provinceName,
      'created_by': instance.createdBy,
      'modified_by': instance.modifiedBy,
      'province': instance.province,
    };
