12 required this.address,
13 required this.latitude,
14 required this.longitude,
15 required this.quantityInLiters,
18 factory
Station.fromJson(Map<String, dynamic> json) {
23 latitude: (json[
'latitude'] as num).toDouble(),
24 longitude: (json[
'longitude'] as num).toDouble(),
51 required this.driverName,
52 required this.creationDate,
53 required this.stations,
54 required this.startPoint,
55 required this.endPoint,
65 stations: (json[
'stations'] as List<dynamic>)
79 'stations':
stations.map((station) => station.toJson()).toList(),
Station({ required this.id, required this.name, required this.address, required this.latitude, required this.longitude, required this.quantityInLiters, })
Map< String, dynamic > toJson()
final double quantityInLiters
factory Station fromJson(Map< String, dynamic > json)
Map< String, dynamic > toJson()
String get(String locale)
final List< Station > stations
DriverRequest({ required this.id, required this.driverName, required this.creationDate, required this.stations, required this.startPoint, required this.endPoint, })
final DateTime creationDate