// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'allocated_made.dart';

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

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

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

_AllocatedMadeResult _$AllocatedMadeResultFromJson(
  Map<String, dynamic> json,
) => _AllocatedMadeResult(
  id: (json['id'] as num?)?.toInt(),
  product: json['product'] == null
      ? null
      : Product.fromJson(json['product'] as Map<String, dynamic>),
  kill_house: json['kill_house'],
  to_kill_house: json['to_kill_house'],
  steward: json['steward'] == null
      ? null
      : Steward.fromJson(json['steward'] as Map<String, dynamic>),
  to_steward: json['to_steward'],
  guilds: json['guilds'],
  to_guilds: json['to_guilds'] == null
      ? null
      : Steward.fromJson(json['to_guilds'] as Map<String, dynamic>),
  to_cold_house: json['to_cold_house'],
  index_weight: (json['index_weight'] as num?)?.toInt(),
  date_timestamp: (json['date_timestamp'] as num?)?.toInt(),
  new_state: (json['new_state'] as num?)?.toInt(),
  new_receiver_state: (json['new_receiver_state'] as num?)?.toInt(),
  new_allocation_state: (json['new_allocation_state'] as num?)?.toInt(),
  key: json['key'] as String?,
  create_date: json['create_date'] as String?,
  modify_date: json['modify_date'] as String?,
  trash: json['trash'] as bool?,
  number_of_carcasses: (json['number_of_carcasses'] as num?)?.toInt(),
  real_number_of_carcasses: (json['real_number_of_carcasses'] as num?)?.toInt(),
  receiver_real_number_of_carcasses:
      (json['receiver_real_number_of_carcasses'] as num?)?.toInt(),
  weight_of_carcasses: (json['weight_of_carcasses'] as num?)?.toInt(),
  real_weight_of_carcasses: (json['real_weight_of_carcasses'] as num?)?.toInt(),
  receiver_real_weight_of_carcasses:
      (json['receiver_real_weight_of_carcasses'] as num?)?.toInt(),
  weight_loss_of_carcasses: (json['weight_loss_of_carcasses'] as num?)?.toInt(),
  final_registration: json['final_registration'] as bool?,
  sell_type: json['sell_type'] as String?,
  product_name: json['product_name'] as String?,
  seller_type: json['seller_type'] as String?,
  type: json['type'] as String?,
  sale_type: json['sale_type'] as String?,
  allocation_type: json['allocation_type'] as String?,
  system_registration_code: json['system_registration_code'] as bool?,
  registration_code: (json['registration_code'] as num?)?.toInt(),
  amount: (json['amount'] as num?)?.toInt(),
  total_amount: (json['total_amount'] as num?)?.toInt(),
  total_amount_paid: (json['total_amount_paid'] as num?)?.toInt(),
  total_amount_remain: (json['total_amount_remain'] as num?)?.toInt(),
  logged_registration_code: json['logged_registration_code'] as String?,
  state: json['state'] as String?,
  receiver_state: json['receiver_state'] as String?,
  allocation_state: json['allocation_state'] as String?,
  date: json['date'] as String?,
  role: json['role'] as String?,
  steward_temp_key: json['steward_temp_key'] as String?,
  approved_price_status: json['approved_price_status'] as bool?,
  calculate_status: json['calculate_status'] as bool?,
  temporary_trash: json['temporary_trash'] as bool?,
  temporary_deleted: json['temporary_deleted'] as bool?,
  created_by: json['created_by'] as String?,
  modified_by: json['modified_by'] as String?,
  ware_house: json['ware_house'],
  steward_ware_house: json['steward_ware_house'],
  car: json['car'],
  dispenser: json['dispenser'],
);

Map<String, dynamic> _$AllocatedMadeResultToJson(
  _AllocatedMadeResult instance,
) => <String, dynamic>{
  'id': instance.id,
  'product': instance.product,
  'kill_house': instance.kill_house,
  'to_kill_house': instance.to_kill_house,
  'steward': instance.steward,
  'to_steward': instance.to_steward,
  'guilds': instance.guilds,
  'to_guilds': instance.to_guilds,
  'to_cold_house': instance.to_cold_house,
  'index_weight': instance.index_weight,
  'date_timestamp': instance.date_timestamp,
  'new_state': instance.new_state,
  'new_receiver_state': instance.new_receiver_state,
  'new_allocation_state': instance.new_allocation_state,
  'key': instance.key,
  'create_date': instance.create_date,
  'modify_date': instance.modify_date,
  'trash': instance.trash,
  'number_of_carcasses': instance.number_of_carcasses,
  'real_number_of_carcasses': instance.real_number_of_carcasses,
  'receiver_real_number_of_carcasses':
      instance.receiver_real_number_of_carcasses,
  'weight_of_carcasses': instance.weight_of_carcasses,
  'real_weight_of_carcasses': instance.real_weight_of_carcasses,
  'receiver_real_weight_of_carcasses':
      instance.receiver_real_weight_of_carcasses,
  'weight_loss_of_carcasses': instance.weight_loss_of_carcasses,
  'final_registration': instance.final_registration,
  'sell_type': instance.sell_type,
  'product_name': instance.product_name,
  'seller_type': instance.seller_type,
  'type': instance.type,
  'sale_type': instance.sale_type,
  'allocation_type': instance.allocation_type,
  'system_registration_code': instance.system_registration_code,
  'registration_code': instance.registration_code,
  'amount': instance.amount,
  'total_amount': instance.total_amount,
  'total_amount_paid': instance.total_amount_paid,
  'total_amount_remain': instance.total_amount_remain,
  'logged_registration_code': instance.logged_registration_code,
  'state': instance.state,
  'receiver_state': instance.receiver_state,
  'allocation_state': instance.allocation_state,
  'date': instance.date,
  'role': instance.role,
  'steward_temp_key': instance.steward_temp_key,
  'approved_price_status': instance.approved_price_status,
  'calculate_status': instance.calculate_status,
  'temporary_trash': instance.temporary_trash,
  'temporary_deleted': instance.temporary_deleted,
  'created_by': instance.created_by,
  'modified_by': instance.modified_by,
  'ware_house': instance.ware_house,
  'steward_ware_house': instance.steward_ware_house,
  'car': instance.car,
  'dispenser': instance.dispenser,
};

_Product _$ProductFromJson(Map<String, dynamic> json) =>
    _Product(weight_average: (json['weight_average'] as num?)?.toInt());

Map<String, dynamic> _$ProductToJson(_Product instance) => <String, dynamic>{
  'weight_average': instance.weight_average,
};

_Steward _$StewardFromJson(Map<String, dynamic> json) => _Steward(
  id: (json['id'] as num?)?.toInt(),
  user: json['user'] == null
      ? null
      : User.fromJson(json['user'] as Map<String, dynamic>),
  address: json['address'] == null
      ? null
      : Address.fromJson(json['address'] as Map<String, dynamic>),
  guild_area_activity: json['guild_area_activity'] == null
      ? null
      : Activity.fromJson(json['guild_area_activity'] as Map<String, dynamic>),
  guild_type_activity: json['guild_type_activity'] == null
      ? null
      : Activity.fromJson(json['guild_type_activity'] as Map<String, dynamic>),
  kill_house: json['kill_house'] as List<dynamic>?,
  steward_kill_house: json['steward_kill_house'] as List<dynamic>?,
  stewards: json['stewards'] as List<dynamic>?,
  get_pos_status: json['get_pos_status'] == null
      ? null
      : PosStatus.fromJson(json['get_pos_status'] as Map<String, dynamic>),
  key: json['key'] as String?,
  create_date: json['create_date'] as String?,
  modify_date: json['modify_date'] as String?,
  trash: json['trash'] as bool?,
  user_id_foreign_key: json['user_id_foreign_key'],
  address_id_foreign_key: json['address_id_foreign_key'],
  user_bank_id_foreign_key: json['user_bank_id_foreign_key'],
  wallet_id_foreign_key: json['wallet_id_foreign_key'],
  provincial_government_id_key: json['provincial_government_id_key'],
  identity_documents: json['identity_documents'],
  active: json['active'] as bool?,
  city_number: (json['city_number'] as num?)?.toInt(),
  city_name: json['city_name'] as String?,
  guilds_id: json['guilds_id'] as String?,
  license_number: json['license_number'] as String?,
  guilds_name: json['guilds_name'] as String?,
  phone: json['phone'] as String?,
  type_activity: json['type_activity'] as String?,
  area_activity: json['area_activity'] as String?,
  province_number: (json['province_number'] as num?)?.toInt(),
  province_name: json['province_name'] as String?,
  steward: json['steward'] as bool?,
  has_pos: json['has_pos'] as bool?,
  centers_allocation: json['centers_allocation'],
  kill_house_centers_allocation: json['kill_house_centers_allocation'],
  allocation_limit: json['allocation_limit'],
  limitation_allocation: json['limitation_allocation'] as bool?,
  registerar_role: json['registerar_role'] as String?,
  registerar_fullname: json['registerar_fullname'] as String?,
  registerar_mobile: json['registerar_mobile'] as String?,
  kill_house_register: json['kill_house_register'] as bool?,
  steward_register: json['steward_register'] as bool?,
  guilds_room_register: json['guilds_room_register'] as bool?,
  pos_company_register: json['pos_company_register'] as bool?,
  province_accept_state: json['province_accept_state'] as String?,
  province_message: json['province_message'] as String?,
  condition: json['condition'] as String?,
  description_condition: json['description_condition'] as String?,
  steward_active: json['steward_active'] as bool?,
  steward_allocation_limit: json['steward_allocation_limit'],
  steward_limitation_allocation: json['steward_limitation_allocation'] as bool?,
  license: json['license'] as bool?,
  license_form: json['license_form'],
  license_file: json['license_file'],
  reviewer_role: json['reviewer_role'] as String?,
  reviewer_fullname: json['reviewer_fullname'] as String?,
  reviewer_mobile: json['reviewer_mobile'] as String?,
  checker_message: json['checker_message'] as String?,
  final_accept: json['final_accept'] as bool?,
  temporary_registration: json['temporary_registration'] as bool?,
  created_by: json['created_by'] as String?,
  modified_by: json['modified_by'] as String?,
  user_bank_info: json['user_bank_info'],
  wallet: (json['wallet'] as num?)?.toInt(),
  cars: json['cars'] as List<dynamic>?,
  user_level: json['user_level'] as List<dynamic>?,
);

Map<String, dynamic> _$StewardToJson(_Steward instance) => <String, dynamic>{
  'id': instance.id,
  'user': instance.user,
  'address': instance.address,
  'guild_area_activity': instance.guild_area_activity,
  'guild_type_activity': instance.guild_type_activity,
  'kill_house': instance.kill_house,
  'steward_kill_house': instance.steward_kill_house,
  'stewards': instance.stewards,
  'get_pos_status': instance.get_pos_status,
  'key': instance.key,
  'create_date': instance.create_date,
  'modify_date': instance.modify_date,
  'trash': instance.trash,
  'user_id_foreign_key': instance.user_id_foreign_key,
  'address_id_foreign_key': instance.address_id_foreign_key,
  'user_bank_id_foreign_key': instance.user_bank_id_foreign_key,
  'wallet_id_foreign_key': instance.wallet_id_foreign_key,
  'provincial_government_id_key': instance.provincial_government_id_key,
  'identity_documents': instance.identity_documents,
  'active': instance.active,
  'city_number': instance.city_number,
  'city_name': instance.city_name,
  'guilds_id': instance.guilds_id,
  'license_number': instance.license_number,
  'guilds_name': instance.guilds_name,
  'phone': instance.phone,
  'type_activity': instance.type_activity,
  'area_activity': instance.area_activity,
  'province_number': instance.province_number,
  'province_name': instance.province_name,
  'steward': instance.steward,
  'has_pos': instance.has_pos,
  'centers_allocation': instance.centers_allocation,
  'kill_house_centers_allocation': instance.kill_house_centers_allocation,
  'allocation_limit': instance.allocation_limit,
  'limitation_allocation': instance.limitation_allocation,
  'registerar_role': instance.registerar_role,
  'registerar_fullname': instance.registerar_fullname,
  'registerar_mobile': instance.registerar_mobile,
  'kill_house_register': instance.kill_house_register,
  'steward_register': instance.steward_register,
  'guilds_room_register': instance.guilds_room_register,
  'pos_company_register': instance.pos_company_register,
  'province_accept_state': instance.province_accept_state,
  'province_message': instance.province_message,
  'condition': instance.condition,
  'description_condition': instance.description_condition,
  'steward_active': instance.steward_active,
  'steward_allocation_limit': instance.steward_allocation_limit,
  'steward_limitation_allocation': instance.steward_limitation_allocation,
  'license': instance.license,
  'license_form': instance.license_form,
  'license_file': instance.license_file,
  'reviewer_role': instance.reviewer_role,
  'reviewer_fullname': instance.reviewer_fullname,
  'reviewer_mobile': instance.reviewer_mobile,
  'checker_message': instance.checker_message,
  'final_accept': instance.final_accept,
  'temporary_registration': instance.temporary_registration,
  'created_by': instance.created_by,
  'modified_by': instance.modified_by,
  'user_bank_info': instance.user_bank_info,
  'wallet': instance.wallet,
  'cars': instance.cars,
  'user_level': instance.user_level,
};

_User _$UserFromJson(Map<String, dynamic> json) => _User(
  fullname: json['fullname'] as String?,
  first_name: json['first_name'] as String?,
  last_name: json['last_name'] as String?,
  mobile: json['mobile'] as String?,
  national_id: json['national_id'] as String?,
  city: json['city'] as String?,
);

Map<String, dynamic> _$UserToJson(_User instance) => <String, dynamic>{
  'fullname': instance.fullname,
  'first_name': instance.first_name,
  'last_name': instance.last_name,
  'mobile': instance.mobile,
  'national_id': instance.national_id,
  'city': instance.city,
};

_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
      : Province.fromJson(json['city'] as Map<String, dynamic>),
  address: json['address'] as String?,
  postal_code: 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.postal_code,
};

_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,
};

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

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

_PosStatus _$PosStatusFromJson(Map<String, dynamic> json) => _PosStatus(
  len_active_sessions: (json['len_active_sessions'] as num?)?.toInt(),
  has_pons: json['has_pons'] as bool?,
  has_active_pons: json['has_active_pons'] as bool?,
);

Map<String, dynamic> _$PosStatusToJson(_PosStatus instance) =>
    <String, dynamic>{
      'len_active_sessions': instance.len_active_sessions,
      'has_pons': instance.has_pons,
      'has_active_pons': instance.has_active_pons,
    };
