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.
32 lines
672 B
32 lines
672 B
1 month ago
|
import 'package:huixiang/data/author.dart';
|
||
|
import 'package:json_annotation/json_annotation.dart';
|
||
|
|
||
|
part 'course.g.dart';
|
||
|
|
||
|
@JsonSerializable(explicitToJson: true)
|
||
|
class Course {
|
||
|
String? id = '';
|
||
|
String? createTime = '';
|
||
|
String? createUser = '';
|
||
|
String? updateTime = '';
|
||
|
String? updateUser = '';
|
||
|
String? categoryId = '';
|
||
|
String? subject = '';
|
||
|
List<String>? tags = [];
|
||
|
String? coverImg = '';
|
||
|
Author? author;
|
||
|
String? introduce = '';
|
||
|
int? viewers = 0;
|
||
|
int? likes = 0;
|
||
|
bool? state = false;
|
||
|
int? isDelete = 0;
|
||
|
|
||
|
Course();
|
||
|
|
||
|
factory Course.fromJson(Map<String, dynamic> json) => _$CourseFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => _$CourseToJson(this);
|
||
|
|
||
|
|
||
|
}
|