Blame view

lib/models/course_entity.dart 1.13 KB
8988aa69   liangchengyou   feat:首页+课程列表数据获取
1
2
3
4
5
6
7
8
9
10
11
  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;
e5c9e98f   liangchengyou   feat:首页模块颜色
12
  	String? courseModuleThemeColor;
68dd7ba8   liangchengyou   feat:首页主题颜色+已知问题修改
13
  	String? courseModuleCode;
8988aa69   liangchengyou   feat:首页+课程列表数据获取
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
  
  	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;
8988aa69   liangchengyou   feat:首页+课程列表数据获取
41
42
43
44
45
46
47
48
49
50
51
52
  
  	CourseCourseLessons();
  
  	factory CourseCourseLessons.fromJson(Map<String, dynamic> json) => $CourseCourseLessonsFromJson(json);
  
  	Map<String, dynamic> toJson() => $CourseCourseLessonsToJson(this);
  
  	@override
  	String toString() {
  		return jsonEncode(this);
  	}
  }