getRankingById method

Future<Ranking> getRankingById(
  1. String id
)

Gets the ranking that matches an id.id:

Implementation

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

  ClientException.checkIsSuccessStatusCode(response);

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