RoutingInfo.fromJson constructor

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

Implementation

factory RoutingInfo.fromJson(Map<String, dynamic> json) {
  return RoutingInfo(
    routes: json['routes'].map<SmRoutes>((json) => SmRoutes.fromJson(json)).toList(),
    waypoints: json['waypoints'].map<SmWaypoints>((json) => SmWaypoints.fromJson(json)).toList()
  );
}