// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'steward_free_bar.dart';

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

_StewardFreeBar _$StewardFreeBarFromJson(Map<String, dynamic> json) =>
    _StewardFreeBar(
      id: (json['id'] as num?)?.toInt(),
      steward: json['steward'] == null
          ? null
          : Steward.fromJson(json['steward'] as Map<String, dynamic>),
      guild: json['guild'],
      product: json['product'] == null
          ? null
          : Product.fromJson(json['product'] 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?,
      killHouseName: json['kill_house_name'] as String?,
      killHouseMobile: json['kill_house_mobile'] as String?,
      killHouseVetName: json['kill_house_vet_name'] as String?,
      killHouseVetMobile: json['kill_house_vet_mobile'] as String?,
      province: json['province'] as String?,
      city: json['city'] as String?,
      driverName: json['driver_name'] as String?,
      driverMobile: json['driver_mobile'] as String?,
      car: json['car'],
      pelak: json['pelak'] as String?,
      numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(),
      weightOfCarcasses: (json['weight_of_carcasses'] as num?)?.toDouble(),
      barImage: json['bar_image'] as String?,
      date: json['date'] as String?,
      temporaryTrash: json['temporary_trash'] as bool?,
      temporaryDeleted: json['temporary_deleted'] as bool?,
      createdBy: json['created_by'] as String?,
      modifiedBy: json['modified_by'] as String?,
    );

Map<String, dynamic> _$StewardFreeBarToJson(_StewardFreeBar instance) =>
    <String, dynamic>{
      'id': instance.id,
      'steward': instance.steward,
      'guild': instance.guild,
      'product': instance.product,
      'key': instance.key,
      'create_date': instance.createDate,
      'modify_date': instance.modifyDate,
      'trash': instance.trash,
      'kill_house_name': instance.killHouseName,
      'kill_house_mobile': instance.killHouseMobile,
      'kill_house_vet_name': instance.killHouseVetName,
      'kill_house_vet_mobile': instance.killHouseVetMobile,
      'province': instance.province,
      'city': instance.city,
      'driver_name': instance.driverName,
      'driver_mobile': instance.driverMobile,
      'car': instance.car,
      'pelak': instance.pelak,
      'number_of_carcasses': instance.numberOfCarcasses,
      'weight_of_carcasses': instance.weightOfCarcasses,
      'bar_image': instance.barImage,
      'date': instance.date,
      'temporary_trash': instance.temporaryTrash,
      'temporary_deleted': instance.temporaryDeleted,
      'created_by': instance.createdBy,
      'modified_by': instance.modifiedBy,
    };

_Steward _$StewardFromJson(Map<String, dynamic> json) => _Steward(
  user: json['user'] == null
      ? null
      : User.fromJson(json['user'] as Map<String, dynamic>),
  guildsName: json['guilds_name'] as String?,
  steward: json['steward'] as bool?,
  allocationLimit: (json['allocation_limit'] as num?)?.toInt(),
  address: json['address'] == null
      ? null
      : Address.fromJson(json['address'] as Map<String, dynamic>),
  licenseNumber: json['license_number'] as String?,
  typeActivity: json['type_activity'] as String?,
  areaActivity: json['area_activity'] as String?,
  guildsId: json['guilds_id'] as String?,
  createDate: json['create_date'] as String?,
);

Map<String, dynamic> _$StewardToJson(_Steward instance) => <String, dynamic>{
  'user': instance.user,
  'guilds_name': instance.guildsName,
  'steward': instance.steward,
  'allocation_limit': instance.allocationLimit,
  'address': instance.address,
  'license_number': instance.licenseNumber,
  'type_activity': instance.typeActivity,
  'area_activity': instance.areaActivity,
  'guilds_id': instance.guildsId,
  'create_date': instance.createDate,
};

_User _$UserFromJson(Map<String, dynamic> json) => _User(
  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
      : City.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> _$UserToJson(_User 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,
};

_City _$CityFromJson(Map<String, dynamic> json) => _City(
  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'] as String?,
  modifiedBy: json['modified_by'] as String?,
  province: (json['province'] as num?)?.toInt(),
);

Map<String, dynamic> _$CityToJson(_City 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,
};

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

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

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