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.
34 lines
692 B
34 lines
692 B
import 'package:json_annotation/json_annotation.dart'; |
|
|
|
part 'logistics.g.dart'; |
|
|
|
@JsonSerializable(explicitToJson: true) |
|
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); |
|
|
|
|
|
} |
|
|
|
@JsonSerializable(explicitToJson: true) |
|
class Traces { |
|
String? acceptStation = ''; |
|
String? acceptTime = ''; |
|
|
|
Traces(); |
|
|
|
factory Traces.fromJson(Map<String, dynamic> json) => _$TracesFromJson(json); |
|
|
|
Map<String, dynamic> toJson() => _$TracesToJson(this); |
|
|
|
|
|
} |