getProductGroupMarketVerticalsByProductGroupId method
Gets all the product group market vertical information of the product that matches an id.
Implementation
Future<List<ProductGroupMarketVertical>>
getProductGroupMarketVerticalsByProductGroupId(int id) async {
final response = await _context.client.get(
Uri.https(
authority, '$path/productgroups/$id/productgroupmarketverticals'),
);
ClientException.checkIsSuccessStatusCode(response);
return (json.decode(response.body) as List)
.map((e) => ProductGroupMarketVertical.fromJson(e))
.toList();
}