Ranking erweitert

This commit is contained in:
Sven committed 2024-04-22 14:42:43 +02:00
1 parent 32ec25af14
commit 91f641f998
6 files changed
+449 -327

No files matched your search

+17 -3
View File
@@ -5,15 +5,29 @@ part 'rank.g.dart';
@collection
@JsonSerializable()
class Ranking {
@JsonValue(0)
late Id? id = Isar.autoIncrement;
@JsonKey(name: "ranking")
late List<Rank> ranks;
Ranking();
factory Ranking.fromJson(Map<String, dynamic> json) => _$RankingFromJson(json);
Map<String, dynamic> toJson() => _$RankingToJson(this);
}
@embedded
@JsonSerializable()
class Rank {
late Id id;
late int id;
late String zip;
late String area;
late int time;
late List<Vehicle> vehicles;
Rank();