getContestInfo method

Future<Contest> getContestInfo({
  1. required String contestSlug,
})

Implementation

Future<Contest> getContestInfo({required String contestSlug}) async {
  final url = 'https://leetcode.com/contest/api/info/$contestSlug/';
  final data = await makeGraphQLRequest('', url);
  return Contest.fromJson(data);
}