stops function Null safety

Future stops(
  1. String cityName,
  2. BaseCacheManager cacheManager
)

Get a map of stop ids to stop info maps..

Implementation

Future<dynamic> stops(String cityName, BaseCacheManager cacheManager) async {
  File stopsFile = await cacheManager
      .getSingleFile("$apiBaseUrl/$cityName/$apiVersion/stop");
  String stopsJson = await stopsFile.readAsString();

  return jsonDecode(stopsJson);
}