simple detail view of flood station and readings

This commit is contained in:
marco committed 2025-01-24 23:47:46 +01:00
1 parent 08c266bc95
commit dfb9b59560
4 files changed
+68

No files matched your search

+11
View 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});
}