From c581800298722423c887ee83f50533fda717c06e Mon Sep 17 00:00:00 2001 From: fbachus Date: Sat, 6 Jun 2026 01:08:57 +0200 Subject: [PATCH] fix(json): fix typo in json import --- lib/transport_helper.dart | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/transport_helper.dart b/lib/transport_helper.dart index 18caec2..621d951 100644 --- a/lib/transport_helper.dart +++ b/lib/transport_helper.dart @@ -10,8 +10,9 @@ class Route { // from trip API request factory Route.fromJson(Map json) => Route( - segments: json["Leglist"]["Leg"].map((leg) => Segment.fromJson(leg)), - duration: json["LegList"]["Leg"][-1]["Origin"]["time"] - + segments: json["LegList"]["Leg"].map((leg) => Segment.fromJson(leg)), + duration: + json["LegList"]["Leg"][-1]["Origin"]["time"] - json["LegList"]["Leg"][0]["Origin"]["time"], );