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