first commit

This commit is contained in:
2026-08-11 13:16:33 +05:30
parent 18531bf46b
commit c8350563d9
388 changed files with 69656 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
class PickupStats {
final int today;
final int week;
final int month;
final int total;
final int cancelled;
PickupStats({
required this.today,
required this.week,
required this.month,
required this.total,
required this.cancelled,
});
factory PickupStats.fromJson(Map<String, dynamic> json) {
return PickupStats(
today: json['today'] ?? 0,
week: json['week'] ?? 0,
month: json['month'] ?? 0,
total: json['total'] ?? 0,
cancelled: json['cancelled'] ?? 0,
);
}
}

View File

@@ -0,0 +1,44 @@
class RiderWeeklyKms {
final String day;
final double kms;
RiderWeeklyKms({required this.day, required this.kms});
factory RiderWeeklyKms.fromJson(Map<String, dynamic> json) {
return RiderWeeklyKms(
day: json['day'] ?? '',
kms: (json['kms'] ?? 0).toDouble(),
);
}
}
class RiderWeeklyKmsResponse {
final bool status;
final int code;
final String message;
final double totalKms;
final double overallKms;
final List<RiderWeeklyKms> details;
RiderWeeklyKmsResponse({
required this.status,
required this.code,
required this.message,
required this.totalKms,
required this.overallKms,
required this.details,
});
factory RiderWeeklyKmsResponse.fromJson(Map<String, dynamic> json) {
return RiderWeeklyKmsResponse(
status: json['status'] ?? false,
code: json['code'] ?? 0,
message: json['message'] ?? '',
totalKms: (json['total_kms'] ?? 0).toDouble(),
overallKms: (json['overall_kms'] ?? 0).toDouble(),
details: (json['details'] as List<dynamic>? ?? [])
.map((e) => RiderWeeklyKms.fromJson(e))
.toList(),
);
}
}