Skip to content

Commit

Permalink
Update Course Model Null
Browse files Browse the repository at this point in the history
Update Course Model Null
  • Loading branch information
Mahmoud-Abdelaty authored Mar 20, 2024
2 parents fb75e1a + 4cfdd88 commit 256e449
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/core/common/course_view/data/models/course_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class Course {
final bool inWishlist;
final List<Chapter> chapters;
final List<Instructor> instructors;
final List<dynamic> extendsList;
final int studentsCount;
final String certificate;
final List<int> trackId;
Expand All @@ -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,
Expand Down Expand Up @@ -68,7 +66,6 @@ class Course {
instructors: (json['data']['instructors'] as List<dynamic>)
.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<dynamic>).cast<int>(),
Expand Down Expand Up @@ -186,7 +183,7 @@ class Instructor {
final String image;
final String bio;
final int studentCount;
final List<dynamic> courses;

final int coursesCount;

Instructor({
Expand All @@ -196,7 +193,6 @@ class Instructor {
required this.image,
required this.bio,
required this.studentCount,
required this.courses,
required this.coursesCount,
});

Expand All @@ -208,7 +204,6 @@ class Instructor {
image: json['image'],
bio: json['bio'],
studentCount: json['student_count'],
courses: json['courses'],
coursesCount: json['courses_count'],
);
}
Expand Down

0 comments on commit 256e449

Please sign in to comment.