course_entity.dart
1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import 'package:wow_english/generated/json/base/json_field.dart';
import 'package:wow_english/generated/json/course_entity.g.dart';
import 'dart:convert';
@JsonSerializable()
class CourseEntity {
List<CourseCourseLessons>? courseLessons;
int? nowCourseLesson;
int? nowCourseModuleId;
String? nowCourseModuleName;
int? totalCourseLesson;
String? courseModuleThemeColor;
String? courseModuleCode;
CourseEntity();
factory CourseEntity.fromJson(Map<String, dynamic> json) => $CourseEntityFromJson(json);
Map<String, dynamic> toJson() => $CourseEntityToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}
@JsonSerializable()
class CourseCourseLessons {
int? courseModuleId;
int? courseType;
String? coverUrl;
String? createTime;
String? deleted;
String? des;
String? id;
bool? lock;
String? modifyTime;
String? name;
int? sortOrder;
int? status;
CourseCourseLessons();
factory CourseCourseLessons.fromJson(Map<String, dynamic> json) => $CourseCourseLessonsFromJson(json);
Map<String, dynamic> toJson() => $CourseCourseLessonsToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}