50 lines
1.6 KiB
Dart
50 lines
1.6 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'delivery_update.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
DeliveryOptionUpdateDTO _$DeliveryOptionUpdateDTOFromJson(
|
|
Map<String, dynamic> json,
|
|
) => DeliveryOptionUpdateDTO(
|
|
numerical: json['numerical'] as bool,
|
|
value: json['value'] as String,
|
|
key: json['key'] as String,
|
|
);
|
|
|
|
Map<String, dynamic> _$DeliveryOptionUpdateDTOToJson(
|
|
DeliveryOptionUpdateDTO instance,
|
|
) => <String, dynamic>{
|
|
'numerical': instance.numerical,
|
|
'value': instance.value,
|
|
'key': instance.key,
|
|
};
|
|
|
|
DeliveryUpdateDTO _$DeliveryUpdateDTOFromJson(Map<String, dynamic> json) =>
|
|
DeliveryUpdateDTO(
|
|
deliveryId: json['delivery_id'] as String,
|
|
finishedDate: json['finished_date'] as String?,
|
|
selectedPaymentMethodId: json['selected_payment_method_id'] as String?,
|
|
options:
|
|
(json['options'] as List<dynamic>?)
|
|
?.map(
|
|
(e) =>
|
|
DeliveryOptionUpdateDTO.fromJson(e as Map<String, dynamic>),
|
|
)
|
|
.toList(),
|
|
state: json['state'] as String?,
|
|
carId: json['car_id'] as String?,
|
|
);
|
|
|
|
Map<String, dynamic> _$DeliveryUpdateDTOToJson(DeliveryUpdateDTO instance) =>
|
|
<String, dynamic>{
|
|
'delivery_id': instance.deliveryId,
|
|
'finished_date': instance.finishedDate,
|
|
'state': instance.state,
|
|
'car_id': instance.carId,
|
|
'selected_payment_method_id': instance.selectedPaymentMethodId,
|
|
'options': instance.options,
|
|
};
|