fix(json): fix typo in json import

This commit is contained in:
fbachus
2026-06-06 01:22:36 +02:00
parent e88c17ce51
commit c581800298
+3 -2
View File
@@ -10,8 +10,9 @@ class Route {
// from trip API request // from trip API request
factory Route.fromJson(Map<String, dynamic> json) => Route( factory Route.fromJson(Map<String, dynamic> json) => Route(
segments: json["Leglist"]["Leg"].map((leg) => Segment.fromJson(leg)), segments: json["LegList"]["Leg"].map((leg) => Segment.fromJson(leg)),
duration: json["LegList"]["Leg"][-1]["Origin"]["time"] - duration:
json["LegList"]["Leg"][-1]["Origin"]["time"] -
json["LegList"]["Leg"][0]["Origin"]["time"], json["LegList"]["Leg"][0]["Origin"]["time"],
); );