getLocations method
Get all locations
Implementation
Future<PaginatedResponse<Location>> getLocations({
QueryParams? query,
}) async {
final response = await _apiClient.get<Map<String, dynamic>>(
'/api/v1/inventory/locations',
queryParameters: query?.toQueryMap(),
);
return PaginatedResponse.fromJson(
response,
(json) => Location.fromJson(json! as Map<String, dynamic>),
);
}