general minor modifications

This commit is contained in:
2025-08-24 23:34:14 +01:00
parent 5c157c59b8
commit 11be91593d
5 changed files with 29 additions and 11 deletions

View File

@@ -144,8 +144,8 @@ class LocoSummary extends Loco {
locoOperator: json['loco_operator'],
locoNotes: json['loco_notes'],
locoEvn: json['loco_evn'],
mileage: (json['loco_mileage'] as num?)?.toDouble(),
journeys: json['loco_journeys'],
mileage: (json['loco_mileage'] as num?)?.toDouble() ?? 0,
journeys: json['loco_journeys'] ?? 0,
);
}