general minor modifications
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user