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.
45 lines
1.7 KiB
45 lines
1.7 KiB
1 month ago
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||
|
|
||
|
part of 'course.dart';
|
||
|
|
||
|
// **************************************************************************
|
||
|
// JsonSerializableGenerator
|
||
|
// **************************************************************************
|
||
|
|
||
|
Course _$CourseFromJson(Map<String, dynamic> json) => Course()
|
||
|
..id = json['id'] as String?
|
||
|
..createTime = json['createTime'] as String?
|
||
|
..createUser = json['createUser'] as String?
|
||
|
..updateTime = json['updateTime'] as String?
|
||
|
..updateUser = json['updateUser'] as String?
|
||
|
..categoryId = json['categoryId'] as String?
|
||
|
..subject = json['subject'] as String?
|
||
|
..tags = (json['tags'] as List<dynamic>?)?.map((e) => e as String).toList()
|
||
|
..coverImg = json['coverImg'] as String?
|
||
|
..author = json['author'] == null
|
||
|
? null
|
||
|
: Author.fromJson(json['author'] as Map<String, dynamic>)
|
||
|
..introduce = json['introduce'] as String?
|
||
|
..viewers = (json['viewers'] as num?)?.toInt()
|
||
|
..likes = (json['likes'] as num?)?.toInt()
|
||
|
..state = json['state'] as bool?
|
||
|
..isDelete = (json['isDelete'] as num?)?.toInt();
|
||
|
|
||
|
Map<String, dynamic> _$CourseToJson(Course instance) => <String, dynamic>{
|
||
|
'id': instance.id,
|
||
|
'createTime': instance.createTime,
|
||
|
'createUser': instance.createUser,
|
||
|
'updateTime': instance.updateTime,
|
||
|
'updateUser': instance.updateUser,
|
||
|
'categoryId': instance.categoryId,
|
||
|
'subject': instance.subject,
|
||
|
'tags': instance.tags,
|
||
|
'coverImg': instance.coverImg,
|
||
|
'author': instance.author?.toJson(),
|
||
|
'introduce': instance.introduce,
|
||
|
'viewers': instance.viewers,
|
||
|
'likes': instance.likes,
|
||
|
'state': instance.state,
|
||
|
'isDelete': instance.isDelete,
|
||
|
};
|