getRoutes method

Future<List<BridgeRouteData>> getRoutes()

Implementation

Future<List<BridgeRouteData>> getRoutes() async {
  final res = await service.getRoutes();
  return res
      .map((e) => BridgeRouteData.fromJson(Map<String, dynamic>.from(e)))
      .toList();
}