getListOfLocations method

Future<List<Location>> getListOfLocations(
  1. List<int> ids
)

Implementation

Future<List<Location>> getListOfLocations(List<int> ids) async {
  List<Map<String, dynamic>> objects = await super.getAllEntities(
      '${Constants.baseURL}${Constants.locationEndpoint}/$ids');

  return List<Location>.from(objects.map((x) => Location.fromJson(x)));
}