This commit is contained in:
Hamza-Ayed
2023-12-31 00:11:49 +03:00
parent 1b9b0dc9e8
commit c2dc5ec44c
21 changed files with 792 additions and 496 deletions

View File

@@ -1,17 +1,18 @@
class RideData {
class MonthlyDataModel {
final int year;
final int month;
final int day;
final int ridesCount;
RideData({
MonthlyDataModel({
required this.year,
required this.month,
required this.day,
required this.ridesCount,
});
factory RideData.fromJson(Map<String, dynamic> json) => RideData(
factory MonthlyDataModel.fromJson(Map<String, dynamic> json) =>
MonthlyDataModel(
year: json['year'] as int,
month: json['month'] as int,
day: json['day'] as int,