RouteStationInfo.fromJson constructor

RouteStationInfo.fromJson(
  1. 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());
}