8/11/1
This commit is contained in:
@@ -14,12 +14,36 @@ class MonthlyPassengerInstall {
|
||||
class MonthlyDriverInstall {
|
||||
int day;
|
||||
int totalDrivers;
|
||||
int dailyTotalDrivers;
|
||||
int dailyTotalCallingDrivers;
|
||||
int dailyMatchingNotes;
|
||||
int totalMonthlyDrivers;
|
||||
int totalMonthlyCallingDrivers;
|
||||
int totalMonthlyMatchingNotes;
|
||||
|
||||
MonthlyDriverInstall({required this.day, required this.totalDrivers});
|
||||
MonthlyDriverInstall({
|
||||
required this.day,
|
||||
required this.totalDrivers,
|
||||
required this.dailyTotalDrivers,
|
||||
required this.dailyTotalCallingDrivers,
|
||||
required this.dailyMatchingNotes,
|
||||
required this.totalMonthlyDrivers,
|
||||
required this.totalMonthlyCallingDrivers,
|
||||
required this.totalMonthlyMatchingNotes,
|
||||
});
|
||||
|
||||
factory MonthlyDriverInstall.fromJson(Map<String, dynamic> json) =>
|
||||
MonthlyDriverInstall(
|
||||
day: int.parse(json['day'].toString().split('-')[2]),
|
||||
totalDrivers:
|
||||
int.parse(json['totalDrivers'].toString().split(':')[0]));
|
||||
day: int.parse(json['day'].toString().split('-')[2]),
|
||||
totalDrivers: int.parse(json['totalDrivers'].toString()),
|
||||
dailyTotalDrivers: int.parse(json['dailyTotalDrivers'].toString()),
|
||||
dailyTotalCallingDrivers:
|
||||
int.parse(json['dailyTotalCallingDrivers'].toString()),
|
||||
dailyMatchingNotes: int.parse(json['dailyMatchingNotes'].toString()),
|
||||
totalMonthlyDrivers: int.parse(json['totalMonthlyDrivers'].toString()),
|
||||
totalMonthlyCallingDrivers:
|
||||
int.parse(json['totalMonthlyCallingDrivers'].toString()),
|
||||
totalMonthlyMatchingNotes:
|
||||
int.parse(json['totalMonthlyMatchingNotes'].toString()),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user