// GENERATED CODE - DO NOT MODIFY BY HAND part of 'delivery.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** DeliveryOptionDTO _$DeliveryOptionDTOFromJson(Map json) => DeliveryOptionDTO( numerical: json['numerical'] as bool, value: json['value'] as String, display: json['display'] as String, key: json['key'] as String, ); Map _$DeliveryOptionDTOToJson(DeliveryOptionDTO instance) => { 'numerical': instance.numerical, 'value': instance.value, 'display': instance.display, 'key': instance.key, }; DeliveryDTO _$DeliveryDTOFromJson(Map json) => DeliveryDTO( internalReceiptNo: json['internal_receipt_no'] as String, specialAggreements: json['special_aggreements'] as String?, currency: json['currency'] as String?, notes: (json['notes'] as List) .map((e) => NoteDTO.fromJson(e as Map)) .toList(), totalPrice: json['total_price'] as String, prepayment: json['prepayment'] as String, paymentAtDelivery: json['payment_at_delivery'] as String, desiredTime: json['desired_time'] as String, contactPerson: ContactPersonDTO.fromJson( json['contact_person'] as Map, ), articles: (json['articles'] as List) .map((e) => ArticleDTO.fromJson(e as Map)) .toList(), totalNetValue: json['total_net_value'] as String, totalGrossValue: json['total_gross_value'] as String, images: (json['images'] as List) .map((e) => ImageDTO.fromJson(e as Map)) .toList(), customer: CustomerDTO.fromJson(json['customer'] as Map), finishedTime: json['finished_time'] as String, note: json['note'] as String, state: json['state'] as String, payment: PaymentMethodDTO.fromJson(json['payment'] as Map), carId: json['car_id'] as String, options: (json['options'] as List) .map((e) => DeliveryOptionDTO.fromJson(e as Map)) .toList(), ) ..discount = json['discount'] == null ? null : DiscountDTO.fromJson(json['discount'] as Map); Map _$DeliveryDTOToJson(DeliveryDTO instance) => { 'internal_receipt_no': instance.internalReceiptNo, 'special_aggreements': instance.specialAggreements, 'customer': instance.customer, 'total_price': instance.totalPrice, 'desired_time': instance.desiredTime, 'total_gross_value': instance.totalGrossValue, 'total_net_value': instance.totalNetValue, 'contact_person': instance.contactPerson, 'currency': instance.currency, 'articles': instance.articles, 'note': instance.note, 'finished_time': instance.finishedTime, 'car_id': instance.carId, 'state': instance.state, 'prepayment': instance.prepayment, 'payment_at_delivery': instance.paymentAtDelivery, 'discount': instance.discount, 'payment': instance.payment, 'notes': instance.notes, 'images': instance.images, 'options': instance.options, };