getUnitOfMeasures method

Future<UnitOfMeasures> getUnitOfMeasures({
  1. required String material,
})

Implementation

Future<UnitOfMeasures> getUnitOfMeasures({
  required String material,
}) async {
  final url = '${Endpoints.unitOfMeasuresUrl}?material_number=$material';
  final response = await client.get(url);

  response.checkSapMessageHeader();
  return UnitOfMeasures.fromJson(response.data);
}