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