getResultsByStudentID method

Future getResultsByStudentID(
  1. int id
)

Implementation

Future<dynamic> getResultsByStudentID(int id) async {
  final Either<String, List<dynamic>> res = await mappingGetRequest(
    "/results",
    data: {
      "id": id,
    },
  ).run();

  return res.getOrElse((String l) => <Map<String, dynamic>>[]);
}