9/21/2
This commit is contained in:
@@ -11,6 +11,34 @@ class MonthlyPassengerInstall {
|
||||
int.parse(json['totalPassengers'].toString().split(':')[0]));
|
||||
}
|
||||
|
||||
class MonthlyRidesInstall {
|
||||
int day;
|
||||
int totalRides;
|
||||
|
||||
MonthlyRidesInstall({required this.day, required this.totalRides});
|
||||
|
||||
factory MonthlyRidesInstall.fromJson(Map<String, dynamic> json) =>
|
||||
MonthlyRidesInstall(
|
||||
day: int.parse(json['day'].toString().split('-')[2]),
|
||||
totalRides: int.parse(json['totalRides'].toString().split(':')[0]));
|
||||
}
|
||||
|
||||
class MonthlyEmployeeData {
|
||||
int day;
|
||||
int totalEmployees;
|
||||
String name;
|
||||
|
||||
MonthlyEmployeeData(
|
||||
{required this.day, required this.totalEmployees, required this.name});
|
||||
|
||||
factory MonthlyEmployeeData.fromJson(Map<String, dynamic> json) =>
|
||||
MonthlyEmployeeData(
|
||||
day: int.parse(json['date'].toString().split('-')[2]), // Extract day
|
||||
totalEmployees: json['count'],
|
||||
name: json['NAME'],
|
||||
);
|
||||
}
|
||||
|
||||
class MonthlyDriverInstall {
|
||||
int day;
|
||||
int totalDrivers;
|
||||
|
||||
Reference in New Issue
Block a user