// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'segmentation_model.dart';

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

_SegmentationModel _$SegmentationModelFromJson(Map<String, dynamic> json) =>
    _SegmentationModel(
      key: json['key'] as String?,
      productKey: json['product_key'] as String?,
      buyer: json['buyer'] == null
          ? null
          : Buyer.fromJson(json['buyer'] as Map<String, dynamic>),
      date: json['date'] == null
          ? null
          : DateTime.parse(json['date'] as String),
      weight: (json['weight'] as num?)?.toInt(),
      result: json['result'] as String?,
    );

Map<String, dynamic> _$SegmentationModelToJson(_SegmentationModel instance) =>
    <String, dynamic>{
      'key': instance.key,
      'product_key': instance.productKey,
      'buyer': instance.buyer,
      'date': instance.date?.toIso8601String(),
      'weight': instance.weight,
      'result': instance.result,
    };

_Buyer _$BuyerFromJson(Map<String, dynamic> json) => _Buyer(
  fullname: json['fullname'] as String?,
  mobile: json['mobile'] as String?,
  shop: json['shop'] as String?,
  type: json['type'] as String?,
);

Map<String, dynamic> _$BuyerToJson(_Buyer instance) => <String, dynamic>{
  'fullname': instance.fullname,
  'mobile': instance.mobile,
  'shop': instance.shop,
  'type': instance.type,
};
