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.
 
 
 
 
 
 

49 lines
1.9 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'course_details.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
CourseDetails _$CourseDetailsFromJson(Map<String, dynamic> json) =>
CourseDetails()
..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()
..selfLiked = json['selfLiked'] as bool?
..state = json['state'] as bool?
..isDelete = (json['isDelete'] as num?)?.toInt();
Map<String, dynamic> _$CourseDetailsToJson(CourseDetails 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,
'selfLiked': instance.selfLiked,
'state': instance.state,
'isDelete': instance.isDelete,
};