RouteStationInfo.fromJson constructor
RouteStationInfo.fromJson(
- Map json
Implementation
factory RouteStationInfo.fromJson(Map json) {
return RouteStationInfo(
passangers: Passangers.fromJson(json['bus']),
stops: (json['stops'] as List)
.map((e) => StationOnRoute.fromJson(e))
.toList());
}