getUserRecentAcSubmissions method

Future<List<AcSubmission>> getUserRecentAcSubmissions({
  1. required String username,
  2. required int pageSize,
})

Implementation

Future<List<AcSubmission>> getUserRecentAcSubmissions({required String username, required int pageSize}) async {
  final data =
      await makeGraphQLRequest(getGraphQLPayloadUserRecentAcSubmissions(username: username, pageSize: pageSize));
  final list = data['data']['recentAcSubmissionList'] as List;
  return list.cast<Map<String, dynamic>>().map(AcSubmission.fromJson).toList();
}