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.

46 lines
1.6 KiB

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'chapter.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
Chapter _$ChapterFromJson(Map<String, dynamic> json) => Chapter()
..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?
..courseId = json['courseId'] as String?
..name = json['name'] as String?
..content = json['content'] == null
? null
: Content.fromJson(json['content'] as Map<String, dynamic>)
..sort = (json['sort'] as num?)?.toInt()
..isDelete = (json['isDelete'] as num?)?.toInt();
Map<String, dynamic> _$ChapterToJson(Chapter instance) => <String, dynamic>{
'id': instance.id,
'createTime': instance.createTime,
'createUser': instance.createUser,
'updateTime': instance.updateTime,
'updateUser': instance.updateUser,
'courseId': instance.courseId,
'name': instance.name,
'content': instance.content?.toJson(),
'sort': instance.sort,
'isDelete': instance.isDelete,
};
Content _$ContentFromJson(Map<String, dynamic> json) => Content()
..coverImg = json['coverImg'] as String?
..remark = json['remark'] as String?
..fileUrl = json['fileUrl'] as String?;
Map<String, dynamic> _$ContentToJson(Content instance) => <String, dynamic>{
'coverImg': instance.coverImg,
'remark': instance.remark,
'fileUrl': instance.fileUrl,
};