iq/lib/app/modules/home/models/traffic_model.dart

24 lines
411 B
Dart
Raw Permalink Normal View History

2023-09-11 12:11:35 +00:00
class Traffic {
int? status;
Data? data;
Traffic({this.status, this.data});
Traffic.fromJson(Map<String, dynamic> json) {
status = json['status'];
data = json['data'] != null ? Data.fromJson(json['data']) : null;
}
}
class Data {
List<int>? totalReal;
Data({
this.totalReal,
});
Data.fromJson(Map<String, dynamic> json) {
totalReal = json['total_real'].cast<int>();
}
}