Blame view

lib/models/course_module_entity.dart 769 Bytes
993c1a04   liangchengyou   feat:添加数据模型
1
2
  import 'dart:convert';
  
bcd47f52   Key   fixed: 接口list范型支持
3
4
5
  import 'package:wow_english/generated/json/base/json_field.dart';
  import 'package:wow_english/generated/json/course_module_entity.g.dart';
  
993c1a04   liangchengyou   feat:添加数据模型
6
  @JsonSerializable()
bcd47f52   Key   fixed: 接口list范型支持
7
  class CourseModuleEntity {
2187c85f   吴启风   feat:课程结构调整
8
    int? id;
bcd47f52   Key   fixed: 接口list范型支持
9
10
11
12
13
14
15
16
17
18
19
20
21
    String? code;
    int? courseModuleThemeId;
    int? courseTotal;
    String? coverUrl;
    String? createTime;
    String? deleted;
    String? des;
    String? modifyTime;
    String? name;
    int? opening;
    String? picUrl;
    int? sortOrder;
    int? status;
e5c9e98f   liangchengyou   feat:首页模块颜色
22
    String? courseModuleThemeColor;
993c1a04   liangchengyou   feat:添加数据模型
23
  
bcd47f52   Key   fixed: 接口list范型支持
24
    CourseModuleEntity();
993c1a04   liangchengyou   feat:添加数据模型
25
  
bcd47f52   Key   fixed: 接口list范型支持
26
    factory CourseModuleEntity.fromJson(Map<String, dynamic> json) => $CourseModuleEntityFromJson(json);
993c1a04   liangchengyou   feat:添加数据模型
27
  
bcd47f52   Key   fixed: 接口list范型支持
28
    Map<String, dynamic> toJson() => $CourseModuleEntityToJson(this);
993c1a04   liangchengyou   feat:添加数据模型
29
  
bcd47f52   Key   fixed: 接口list范型支持
30
31
32
33
34
    @override
    String toString() {
      return jsonEncode(this);
    }
  }