Blame view

lib/models/course_module_entity.dart 742 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
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  class CourseModuleEntity {
    late String id;
    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;
993c1a04   liangchengyou   feat:添加数据模型
22
  
bcd47f52   Key   fixed: 接口list范型支持
23
    CourseModuleEntity();
993c1a04   liangchengyou   feat:添加数据模型
24
  
bcd47f52   Key   fixed: 接口list范型支持
25
    factory CourseModuleEntity.fromJson(Map<String, dynamic> json) => $CourseModuleEntityFromJson(json);
993c1a04   liangchengyou   feat:添加数据模型
26
  
bcd47f52   Key   fixed: 接口list范型支持
27
    Map<String, dynamic> toJson() => $CourseModuleEntityToJson(this);
993c1a04   liangchengyou   feat:添加数据模型
28
  
bcd47f52   Key   fixed: 接口list范型支持
29
30
31
32
33
    @override
    String toString() {
      return jsonEncode(this);
    }
  }