oneCourse method
Implementation
Future<CourseModel?> oneCourse(int id) async {
String endPoint = "course-content/$id";
return await _api.request<CourseModel?>('get', endPoint,
jsonResponse: (json) => CourseModel.fromJson(json),
errorResponse: (err) => CourseModel.error(err));
}