// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'steward_free_sale_bar.dart';

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

_StewardFreeSaleBar _$StewardFreeSaleBarFromJson(Map<String, dynamic> json) =>
    _StewardFreeSaleBar(
      id: (json['id'] as num?)?.toInt(),
      buyer: json['buyer'] == null
          ? null
          : Buyer.fromJson(json['buyer'] 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?,
      buyerName: json['buyer_name'] as String?,
      buyerMobile: json['buyer_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?,
      typeCar: json['type_car'] as String?,
      pelak: json['pelak'] as String?,
      clearanceCode: json['clearance_code'] as String?,
      numberOfCarcasses: (json['number_of_carcasses'] as num?)?.toInt(),
      weightOfCarcasses: (json['weight_of_carcasses'] as num?)?.toDouble(),
      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?,
      steward: json['steward'],
      guild: json['guild'],
      product: json['product'],
    );

Map<String, dynamic> _$StewardFreeSaleBarToJson(_StewardFreeSaleBar instance) =>
    <String, dynamic>{
      'id': instance.id,
      'buyer': instance.buyer,
      'key': instance.key,
      'create_date': instance.createDate,
      'modify_date': instance.modifyDate,
      'trash': instance.trash,
      'buyer_name': instance.buyerName,
      'buyer_mobile': instance.buyerMobile,
      'province': instance.province,
      'city': instance.city,
      'driver_name': instance.driverName,
      'driver_mobile': instance.driverMobile,
      'type_car': instance.typeCar,
      'pelak': instance.pelak,
      'clearance_code': instance.clearanceCode,
      'number_of_carcasses': instance.numberOfCarcasses,
      'weight_of_carcasses': instance.weightOfCarcasses,
      'date': instance.date,
      'temporary_trash': instance.temporaryTrash,
      'temporary_deleted': instance.temporaryDeleted,
      'created_by': instance.createdBy,
      'modified_by': instance.modifiedBy,
      'steward': instance.steward,
      'guild': instance.guild,
      'product': instance.product,
    };

_Buyer _$BuyerFromJson(Map<String, dynamic> json) => _Buyer(
  key: json['key'] as String?,
  fullname: json['fullname'] as String?,
  firstName: json['first_name'] as String?,
  lastName: json['last_name'] as String?,
  mobile: json['mobile'] as String?,
  unitName: json['unit_name'] as String?,
  city: json['city'] as String?,
  province: json['province'] as String?,
  active: json['active'] as bool?,
  steward: json['steward'] == null
      ? null
      : BuyerSteward.fromJson(json['steward'] as Map<String, dynamic>),
);

Map<String, dynamic> _$BuyerToJson(_Buyer instance) => <String, dynamic>{
  'key': instance.key,
  'fullname': instance.fullname,
  'first_name': instance.firstName,
  'last_name': instance.lastName,
  'mobile': instance.mobile,
  'unit_name': instance.unitName,
  'city': instance.city,
  'province': instance.province,
  'active': instance.active,
  'steward': instance.steward,
};

_BuyerSteward _$BuyerStewardFromJson(Map<String, dynamic> json) =>
    _BuyerSteward(
      key: json['key'] as String?,
      guildsName: json['guilds_name'] as String?,
      user: json['user'] == null
          ? null
          : BuyerStewardUser.fromJson(json['user'] as Map<String, dynamic>),
      typeActivity: json['type_activity'] as String?,
      areaActivity: json['area_activity'] as String?,
    );

Map<String, dynamic> _$BuyerStewardToJson(_BuyerSteward instance) =>
    <String, dynamic>{
      'key': instance.key,
      'guilds_name': instance.guildsName,
      'user': instance.user,
      'type_activity': instance.typeActivity,
      'area_activity': instance.areaActivity,
    };

_BuyerStewardUser _$BuyerStewardUserFromJson(Map<String, dynamic> json) =>
    _BuyerStewardUser(
      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?,
      provinceName: json['province_name'] as String?,
      cityName: json['city_name'] as String?,
      password: json['password'] as String?,
    );

Map<String, dynamic> _$BuyerStewardUserToJson(_BuyerStewardUser instance) =>
    <String, dynamic>{
      'fullname': instance.fullname,
      'first_name': instance.firstName,
      'last_name': instance.lastName,
      'mobile': instance.mobile,
      'national_id': instance.nationalId,
      'province_name': instance.provinceName,
      'city_name': instance.cityName,
      'password': instance.password,
    };
