getProductWarningsByWarningId method
Gets all the product warning information of the warning that matches an id.
Implementation
Future<List<ProductWarning>> getProductWarningsByWarningId(String id) async {
final response = await _context.client.get(
Uri.https(authority, '$path/warnings/$id/productwarnings'),
);
ClientException.checkIsSuccessStatusCode(response);
return (json.decode(response.body) as List)
.map((e) => ProductWarning.fromJson(e))
.toList();
}