added more info on stations in UI
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user