// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'out_province_carcasses_buyer.dart';

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

_OutProvinceCarcassesBuyer _$OutProvinceCarcassesBuyerFromJson(
  Map<String, dynamic> json,
) => _OutProvinceCarcassesBuyer(
  buyer: json['buyer'] == null
      ? null
      : Buyer.fromJson(json['buyer'] as Map<String, dynamic>),
  requestsInfo: json['requests_info'] == null
      ? null
      : RequestsInfo.fromJson(json['requests_info'] as Map<String, dynamic>),
  key: json['key'] as String?,
  trash: json['trash'] as bool?,
  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?,
  role: json['role'] as String?,
  active: json['active'] as bool?,
  typeActivity: json['type_activity'] as String?,
  killHouse: json['kill_house'],
  steward: (json['steward'] as num?)?.toInt(),
);

Map<String, dynamic> _$OutProvinceCarcassesBuyerToJson(
  _OutProvinceCarcassesBuyer instance,
) => <String, dynamic>{
  'buyer': instance.buyer,
  'requests_info': instance.requestsInfo,
  'key': instance.key,
  'trash': instance.trash,
  'fullname': instance.fullname,
  'first_name': instance.firstName,
  'last_name': instance.lastName,
  'mobile': instance.mobile,
  'unit_name': instance.unitName,
  'city': instance.city,
  'province': instance.province,
  'role': instance.role,
  'active': instance.active,
  'type_activity': instance.typeActivity,
  'kill_house': instance.killHouse,
  'steward': instance.steward,
};

_Buyer _$BuyerFromJson(Map<String, dynamic> json) => _Buyer(
  key: json['key'] as String?,
  trash: json['trash'] as bool?,
  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?,
  user: (json['user'] as num?)?.toInt(),
);

Map<String, dynamic> _$BuyerToJson(_Buyer instance) => <String, dynamic>{
  'key': instance.key,
  'trash': instance.trash,
  '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,
  'user': instance.user,
};

_RequestsInfo _$RequestsInfoFromJson(Map<String, dynamic> json) =>
    _RequestsInfo(
      numberOfRequests: (json['number_of_requests'] as num?)?.toInt(),
      totalQuantity: (json['total_quantity'] as num?)?.toInt(),
      totalWeight: (json['total_weight'] as num?)?.toDouble(),
    );

Map<String, dynamic> _$RequestsInfoToJson(_RequestsInfo instance) =>
    <String, dynamic>{
      'number_of_requests': instance.numberOfRequests,
      'total_quantity': instance.totalQuantity,
      'total_weight': instance.totalWeight,
    };
