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