// GENERATED CODE - DO NOT MODIFY BY HAND part of 'course_details.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** CourseDetails _$CourseDetailsFromJson(Map 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?)?.map((e) => e as String).toList() ..coverImg = json['coverImg'] as String? ..author = json['author'] == null ? null : Author.fromJson(json['author'] as Map) ..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 _$CourseDetailsToJson(CourseDetails instance) => { '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, };