From 4cfdd88bcf1e2a5972fadccedf6a9696bf3773ef Mon Sep 17 00:00:00 2001 From: Mahmoud Abdelaty <126201317+Mahmoud-Abdelaty@users.noreply.github.com> Date: Wed, 20 Mar 2024 17:19:42 +0200 Subject: [PATCH] Update Course Model Null Update Course Model Null --- lib/core/common/course_view/data/models/course_model.dart | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/core/common/course_view/data/models/course_model.dart b/lib/core/common/course_view/data/models/course_model.dart index c67c0b2..a3593a8 100644 --- a/lib/core/common/course_view/data/models/course_model.dart +++ b/lib/core/common/course_view/data/models/course_model.dart @@ -16,7 +16,6 @@ class Course { final bool inWishlist; final List chapters; final List instructors; - final List extendsList; final int studentsCount; final String certificate; final List trackId; @@ -39,7 +38,6 @@ class Course { required this.inWishlist, required this.chapters, required this.instructors, - required this.extendsList, required this.studentsCount, required this.certificate, required this.trackId, @@ -68,7 +66,6 @@ class Course { instructors: (json['data']['instructors'] as List) .map((instructorJson) => Instructor.fromJson(instructorJson)) .toList(), - extendsList: json['data']['extends'], studentsCount: json['data']['students_count'], certificate: json['data']['certificate'], trackId: (json['data']['track_id'] as List).cast(), @@ -186,7 +183,7 @@ class Instructor { final String image; final String bio; final int studentCount; - final List courses; + final int coursesCount; Instructor({ @@ -196,7 +193,6 @@ class Instructor { required this.image, required this.bio, required this.studentCount, - required this.courses, required this.coursesCount, }); @@ -208,7 +204,6 @@ class Instructor { image: json['image'], bio: json['bio'], studentCount: json['student_count'], - courses: json['courses'], coursesCount: json['courses_count'], ); }