MapboxModel.fromJson constructor

MapboxModel.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory MapboxModel.fromJson(Map<String, dynamic> json) => MapboxModel(
  routes: List<Route>.from(json["routes"].map((x) => Route.fromJson(x))),
  waypoints: List<Waypoint>.from(
    json["waypoints"].map((x) => Waypoint.fromJson(x)),
  ),
  code: json["code"],
  uuid: json["uuid"],
);