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