You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

47 lines
995 B

import 'package:huixiang/generated/json/base/json_field.dart';
import 'package:huixiang/generated/json/chapter.g.dart';
import 'dart:convert';
export 'package:huixiang/generated/json/chapter.g.dart';
@JsonSerializable()
class Chapter {
String? id = '';
String? createTime = '';
String? createUser = '';
String? updateTime = '';
String? updateUser = '';
String? courseId = '';
String? name = '';
Content? content;
int? sort = 0;
int? isDelete = 0;
Chapter();
factory Chapter.fromJson(Map<String, dynamic> json) => $ChapterFromJson(json);
Map<String, dynamic> toJson() => $ChapterToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}
@JsonSerializable()
class Content {
String? coverImg = '';
String? remark = '';
String? fileUrl = '';
Content();
factory Content.fromJson(Map<String, dynamic> json) => $ContentFromJson(json);
Map<String, dynamic> toJson() => $ContentToJson(this);
@override
String toString() {
return jsonEncode(this);
}
}