Public Access
fix(json): fix typo in json import
This commit is contained in:
@@ -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"],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user