BusTimeTable.fromJson constructor

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

Implementation

BusTimeTable.fromJson(Map<String, dynamic> json) {
  routeId = json['route_id'];
  stopName = json['stop_name'];
  serviceId = json['service_id'];
  stopLat = json['stop_lat'];
  stopLon = json['stop_lon'];
  stopSequence = json['stop_sequence'];
  stopTimes = json['stop_times'].cast<String>();
}