add pipeline

This commit is contained in:
2025-12-10 22:44:32 +00:00
parent 11be91593d
commit 90fe9cae70
2 changed files with 246 additions and 14 deletions

View File

@@ -99,13 +99,13 @@ class Loco {
factory Loco.fromJson(Map<String, dynamic> json) => Loco(
id: json['loco_id'],
type: json['loco_type'],
number: json['loco_number'],
name: json['loco_name'] ?? "",
locoClass: json['loco_class'],
operator: json['loco_operator'],
notes: json['loco_notes'],
evn: json['loco_evn'],
type: json['type'],
number: json['number'],
name: json['name'] ?? "",
locoClass: json['class'],
operator: json['operator'],
notes: json['notes'],
evn: json['evn'],
);
}
@@ -137,13 +137,13 @@ class LocoSummary extends Loco {
factory LocoSummary.fromJson(Map<String, dynamic> json) => LocoSummary(
locoId: json['loco_id'],
locoType: json['loco_type'],
locoNumber: json['loco_number'],
locoName: json['loco_name'] ?? "",
locoClass: json['loco_class'],
locoOperator: json['loco_operator'],
locoNotes: json['loco_notes'],
locoEvn: json['loco_evn'],
locoType: json['type'],
locoNumber: json['number'],
locoName: json['name'] ?? "",
locoClass: json['class'],
locoOperator: json['operator'],
locoNotes: json['notes'],
locoEvn: json['evn'],
mileage: (json['loco_mileage'] as num?)?.toDouble() ?? 0,
journeys: json['loco_journeys'] ?? 0,
);