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.
38 lines
909 B
38 lines
909 B
10 months ago
|
import 'package:huixiang/data/author.dart';
|
||
|
import 'package:huixiang/generated/json/base/json_field.dart';
|
||
|
import 'package:huixiang/generated/json/course_details.g.dart';
|
||
|
import 'dart:convert';
|
||
|
export 'package:huixiang/generated/json/course_details.g.dart';
|
||
|
|
||
|
@JsonSerializable()
|
||
|
class CourseDetails {
|
||
|
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? selfLiked = false;
|
||
|
bool? state = false;
|
||
|
int? isDelete = 0;
|
||
|
|
||
|
CourseDetails();
|
||
|
|
||
|
factory CourseDetails.fromJson(Map<String, dynamic> json) => $CourseDetailsFromJson(json);
|
||
|
|
||
|
Map<String, dynamic> toJson() => $CourseDetailsToJson(this);
|
||
|
|
||
|
@override
|
||
|
String toString() {
|
||
|
return jsonEncode(this);
|
||
|
}
|
||
|
}
|
||
|
|