getProductPrecautionaryAllergenStatementsByProductId method
Future<List<ProductPrecautionaryAllergenStatement> >
getProductPrecautionaryAllergenStatementsByProductId(
- String id
Gets all the product precautionary allergen statement information of the product that matches an id.
Implementation
Future<List<ProductPrecautionaryAllergenStatement>>
getProductPrecautionaryAllergenStatementsByProductId(String id) async {
final response = await _context.client.get(
Uri.https(authority,
'$path/products/$id/productprecautionaryallergenstatements'),
);
ClientException.checkIsSuccessStatusCode(response);
return (json.decode(response.body) as List)
.map((e) => ProductPrecautionaryAllergenStatement.fromJson(e))
.toList();
}