Blame view

lib/models/course_section_entity.dart 743 Bytes
2187c85f   吴启风   feat:课程结构调整
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
  import 'package:wow_english/generated/json/base/json_field.dart';
  import 'package:wow_english/generated/json/course_section_entity.g.dart';
  import 'dart:convert';
  export 'package:wow_english/generated/json/course_section_entity.g.dart';
  
  @JsonSerializable()
  class CourseSectionEntity {
  	late int id;
  	late int courseUnitId;
  	late int courseModuleId;
  	late String name;
  	dynamic des;
  	late int courseType;
  	dynamic coverUrl;
  	late int sortOrder;
  	late int status;
  	late bool lock;
  
  	CourseSectionEntity();
  
  	factory CourseSectionEntity.fromJson(Map<String, dynamic> json) => $CourseSectionEntityFromJson(json);
  
  	Map<String, dynamic> toJson() => $CourseSectionEntityToJson(this);
  
  	@override
  	String toString() {
  		return jsonEncode(this);
  	}
  }