getProductGroupMarketVerticalsByMarketVerticalId method

Future<List<ProductGroupMarketVertical>> getProductGroupMarketVerticalsByMarketVerticalId(
  1. String id
)

Gets all the product group market vertical information of the market vertical that matches an id.

Implementation

Future<List<ProductGroupMarketVertical>>
    getProductGroupMarketVerticalsByMarketVerticalId(String id) async {
  final response = await _context.client.get(
    Uri.https(
        authority, '$path/marketverticals/$id/productgroupmarketverticals'),
  );

  ClientException.checkIsSuccessStatusCode(response);

  return (json.decode(response.body) as List)
      .map((e) => ProductGroupMarketVertical.fromJson(e))
      .toList();
}