added more info on stations in UI

This commit is contained in:
2025-01-27 12:59:20 +01:00
parent 85e3471c87
commit e799c3349b
2 changed files with 24 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ class FloodStation {
final DateTime? dateOpened;
final String catchmentName;
final String label;
final String riverName;
FloodStation({
required this.id,
@@ -15,6 +16,7 @@ class FloodStation {
this.dateOpened,
required this.catchmentName,
required this.label,
required this.riverName,
});
factory FloodStation.fromMap(Map<String, dynamic> json) => FloodStation(
@@ -25,6 +27,7 @@ class FloodStation {
dateOpened: DateTime.tryParse(json['dateOpened'] ?? ''),
catchmentName: parseStringValue(json['catchmentName']),
label: parseStringValue(json['label']),
riverName: parseStringValue(json['riverName']),
);
static double parseDoubleValue(dynamic value) {