getLocation method

Future<Location> getLocation(
  1. String locationId
)

Get location by ID

Implementation

Future<Location> getLocation(String locationId) async {
  final response = await _apiClient.get<Map<String, dynamic>>(
    '/api/v1/inventory/locations/$locationId',
  );

  return Location.fromJson(response);
}