getMarketVerticalById method

Future<MarketVertical> getMarketVerticalById(
  1. String id
)

Gets the market vertical that matches an id.

Implementation

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

  ClientException.checkIsSuccessStatusCode(response);

  return MarketVertical.fromJson(json.decode(response.body));
}