You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.3 KiB
33 lines
1.3 KiB
// GENERATED CODE - DO NOT MODIFY BY HAND |
|
|
|
part of 'logistics.dart'; |
|
|
|
// ************************************************************************** |
|
// JsonSerializableGenerator |
|
// ************************************************************************** |
|
|
|
Logistics _$LogisticsFromJson(Map<String, dynamic> json) => Logistics() |
|
..logisticCode = json['logisticCode'] as String? |
|
..shipperCode = json['shipperCode'] as String? |
|
..state = (json['state'] as num?)?.toInt() |
|
..success = json['success'] as bool? |
|
..traces = (json['traces'] as List<dynamic>?) |
|
?.map((e) => Traces.fromJson(e as Map<String, dynamic>)) |
|
.toList(); |
|
|
|
Map<String, dynamic> _$LogisticsToJson(Logistics instance) => <String, dynamic>{ |
|
'logisticCode': instance.logisticCode, |
|
'shipperCode': instance.shipperCode, |
|
'state': instance.state, |
|
'success': instance.success, |
|
'traces': instance.traces?.map((e) => e.toJson()).toList(), |
|
}; |
|
|
|
Traces _$TracesFromJson(Map<String, dynamic> json) => Traces() |
|
..acceptStation = json['acceptStation'] as String? |
|
..acceptTime = json['acceptTime'] as String?; |
|
|
|
Map<String, dynamic> _$TracesToJson(Traces instance) => <String, dynamic>{ |
|
'acceptStation': instance.acceptStation, |
|
'acceptTime': instance.acceptTime, |
|
};
|
|
|