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