993c1a04
liangchengyou
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
30
31
32
|
import 'package:wow_english/generated/json/base/json_field.dart';
import 'package:wow_english/generated/json/lesson_entity.g.dart';
import 'dart:convert';
@JsonSerializable()
class LessonEntity {
String? code;
int? courseModuleThemeId;
int? courseTotal;
String? coverUrl;
String? createTime;
String? deleted;
String? des;
String? id;
String? modifyTime;
String? name;
int? opening;
String? picUrl;
int? sortOrder;
int? status;
LessonEntity();
factory LessonEntity.fromJson(Map<String, dynamic> json) => $LessonEntityFromJson(json);
Map<String, dynamic> toJson() => $LessonEntityToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}
|