INSERTION WORKS LESGOO

This commit is contained in:
2023-12-26 22:16:19 +02:00
parent c4430ef4c5
commit f9349241f7
5 changed files with 51 additions and 68 deletions

22
lib/arrival.dart Normal file
View File

@@ -0,0 +1,22 @@
class Arrival {
final String timeOfDay;
final int weekDay;
final int tramLine;
final bool direction;
Arrival({
required this.timeOfDay,
required this.weekDay,
required this.tramLine,
required this.direction,
});
factory Arrival.fromJson(Map<String, dynamic> json) {
return Arrival(
timeOfDay: json['time_of_day'] as String,
weekDay: json['week_day'] as int,
tramLine: json['tram_line'] as int,
direction: json['direction'] as bool,
);
}
}