getAllLocations method

Future<List<Location>> getAllLocations()

Implementation

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

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