getContestRanking method

Future<ContestRanking> getContestRanking({
  1. required String contestSlug,
  2. required int page,
})

Implementation

Future<ContestRanking> getContestRanking({required String contestSlug, required int page}) async {
  final url = 'https://leetcode.com/contest/api/ranking/$contestSlug/?pagination=$page&region=global';
  final data = await makeGraphQLRequest('', url);
  return ContestRanking.fromJson(data);
}