simple detail view of flood station and readings
This commit is contained in:
11
lib/model/reading.dart
Normal file
11
lib/model/reading.dart
Normal file
@@ -0,0 +1,11 @@
|
||||
class Reading {
|
||||
final DateTime dateTime;
|
||||
final double value;
|
||||
|
||||
factory Reading.fromMap(Map<String, dynamic> json) => Reading(
|
||||
dateTime: DateTime.parse(json['dateTime']),
|
||||
value: json['value'],
|
||||
);
|
||||
|
||||
Reading({required this.dateTime, required this.value});
|
||||
}
|
||||
Reference in New Issue
Block a user