Blame view

lib/generated/json/course_module_entity.g.dart 2.84 KB
993c1a04   liangchengyou   feat:添加数据模型
1
  import 'package:wow_english/generated/json/base/json_convert_content.dart';
bcd47f52   Key   fixed: 接口list范型支持
2
  import 'package:wow_english/models/course_module_entity.dart';
993c1a04   liangchengyou   feat:添加数据模型
3
  
bcd47f52   Key   fixed: 接口list范型支持
4
5
6
7
8
9
  CourseModuleEntity $CourseModuleEntityFromJson(Map<String, dynamic> json) {
  	final CourseModuleEntity courseModuleEntity = CourseModuleEntity();
  	final String? id = jsonConvert.convert<String>(json['id']);
  	if (id != null) {
  		courseModuleEntity.id = id;
  	}
993c1a04   liangchengyou   feat:添加数据模型
10
11
  	final String? code = jsonConvert.convert<String>(json['code']);
  	if (code != null) {
bcd47f52   Key   fixed: 接口list范型支持
12
  		courseModuleEntity.code = code;
993c1a04   liangchengyou   feat:添加数据模型
13
14
15
  	}
  	final int? courseModuleThemeId = jsonConvert.convert<int>(json['courseModuleThemeId']);
  	if (courseModuleThemeId != null) {
bcd47f52   Key   fixed: 接口list范型支持
16
  		courseModuleEntity.courseModuleThemeId = courseModuleThemeId;
993c1a04   liangchengyou   feat:添加数据模型
17
18
19
  	}
  	final int? courseTotal = jsonConvert.convert<int>(json['courseTotal']);
  	if (courseTotal != null) {
bcd47f52   Key   fixed: 接口list范型支持
20
  		courseModuleEntity.courseTotal = courseTotal;
993c1a04   liangchengyou   feat:添加数据模型
21
22
23
  	}
  	final String? coverUrl = jsonConvert.convert<String>(json['coverUrl']);
  	if (coverUrl != null) {
bcd47f52   Key   fixed: 接口list范型支持
24
  		courseModuleEntity.coverUrl = coverUrl;
993c1a04   liangchengyou   feat:添加数据模型
25
26
27
  	}
  	final String? createTime = jsonConvert.convert<String>(json['createTime']);
  	if (createTime != null) {
bcd47f52   Key   fixed: 接口list范型支持
28
  		courseModuleEntity.createTime = createTime;
993c1a04   liangchengyou   feat:添加数据模型
29
30
31
  	}
  	final String? deleted = jsonConvert.convert<String>(json['deleted']);
  	if (deleted != null) {
bcd47f52   Key   fixed: 接口list范型支持
32
  		courseModuleEntity.deleted = deleted;
993c1a04   liangchengyou   feat:添加数据模型
33
34
35
  	}
  	final String? des = jsonConvert.convert<String>(json['des']);
  	if (des != null) {
bcd47f52   Key   fixed: 接口list范型支持
36
  		courseModuleEntity.des = des;
993c1a04   liangchengyou   feat:添加数据模型
37
38
39
  	}
  	final String? modifyTime = jsonConvert.convert<String>(json['modifyTime']);
  	if (modifyTime != null) {
bcd47f52   Key   fixed: 接口list范型支持
40
  		courseModuleEntity.modifyTime = modifyTime;
993c1a04   liangchengyou   feat:添加数据模型
41
42
43
  	}
  	final String? name = jsonConvert.convert<String>(json['name']);
  	if (name != null) {
bcd47f52   Key   fixed: 接口list范型支持
44
  		courseModuleEntity.name = name;
993c1a04   liangchengyou   feat:添加数据模型
45
46
47
  	}
  	final int? opening = jsonConvert.convert<int>(json['opening']);
  	if (opening != null) {
bcd47f52   Key   fixed: 接口list范型支持
48
  		courseModuleEntity.opening = opening;
993c1a04   liangchengyou   feat:添加数据模型
49
50
51
  	}
  	final String? picUrl = jsonConvert.convert<String>(json['picUrl']);
  	if (picUrl != null) {
bcd47f52   Key   fixed: 接口list范型支持
52
  		courseModuleEntity.picUrl = picUrl;
993c1a04   liangchengyou   feat:添加数据模型
53
54
55
  	}
  	final int? sortOrder = jsonConvert.convert<int>(json['sortOrder']);
  	if (sortOrder != null) {
bcd47f52   Key   fixed: 接口list范型支持
56
  		courseModuleEntity.sortOrder = sortOrder;
993c1a04   liangchengyou   feat:添加数据模型
57
58
59
  	}
  	final int? status = jsonConvert.convert<int>(json['status']);
  	if (status != null) {
bcd47f52   Key   fixed: 接口list范型支持
60
  		courseModuleEntity.status = status;
993c1a04   liangchengyou   feat:添加数据模型
61
  	}
bcd47f52   Key   fixed: 接口list范型支持
62
  	return courseModuleEntity;
993c1a04   liangchengyou   feat:添加数据模型
63
64
  }
  
bcd47f52   Key   fixed: 接口list范型支持
65
  Map<String, dynamic> $CourseModuleEntityToJson(CourseModuleEntity entity) {
993c1a04   liangchengyou   feat:添加数据模型
66
  	final Map<String, dynamic> data = <String, dynamic>{};
bcd47f52   Key   fixed: 接口list范型支持
67
  	data['id'] = entity.id;
993c1a04   liangchengyou   feat:添加数据模型
68
69
70
71
72
73
74
  	data['code'] = entity.code;
  	data['courseModuleThemeId'] = entity.courseModuleThemeId;
  	data['courseTotal'] = entity.courseTotal;
  	data['coverUrl'] = entity.coverUrl;
  	data['createTime'] = entity.createTime;
  	data['deleted'] = entity.deleted;
  	data['des'] = entity.des;
993c1a04   liangchengyou   feat:添加数据模型
75
76
77
78
79
80
81
  	data['modifyTime'] = entity.modifyTime;
  	data['name'] = entity.name;
  	data['opening'] = entity.opening;
  	data['picUrl'] = entity.picUrl;
  	data['sortOrder'] = entity.sortOrder;
  	data['status'] = entity.status;
  	return data;
8988aa69   liangchengyou   feat:首页+课程列表数据获取
82
  }