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.
 
 
 
 
 
 

41 lines
893 B

import 'package:huixiang/generated/json/base/json_field.dart';
import 'package:huixiang/generated/json/logistics.g.dart';
import 'dart:convert';
export 'package:huixiang/generated/json/logistics.g.dart';
@JsonSerializable()
class Logistics {
String? logisticCode = '';
String? shipperCode = '';
int? state = 0;
bool? success = false;
List<Traces>? traces = [];
Logistics();
factory Logistics.fromJson(Map<String, dynamic> json) => $LogisticsFromJson(json);
Map<String, dynamic> toJson() => $LogisticsToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}
@JsonSerializable()
class Traces {
String? acceptStation = '';
String? acceptTime = '';
Traces();
factory Traces.fromJson(Map<String, dynamic> json) => $TracesFromJson(json);
Map<String, dynamic> toJson() => $TracesToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}