// GENERATED CODE - DO NOT MODIFY BY HAND part of 'downloaded_series.dart'; // ************************************************************************** // JsonSerializableGenerator // ************************************************************************** _$DownloadedSeriesImpl _$$DownloadedSeriesImplFromJson( Map json) => _$DownloadedSeriesImpl( id: json['id'] as String, serverId: json['serverId'] as String, seriesFeedUrl: json['seriesFeedUrl'] as String, title: json['title'] as String, coverUrl: json['coverUrl'] as String?, coverPath: json['coverPath'] as String?, thumbnailUrl: json['thumbnailUrl'] as String?, thumbnailPath: json['thumbnailPath'] as String?, status: $enumDecodeNullable(_$DownloadStatusEnumMap, json['status']) ?? DownloadStatus.pending, totalChapters: (json['totalChapters'] as num?)?.toInt() ?? 0, downloadedChaptersCount: (json['downloadedChaptersCount'] as num?)?.toInt() ?? 0, downloadedAt: json['downloadedAt'] == null ? null : DateTime.parse(json['downloadedAt'] as String), updatedAt: DateTime.parse(json['updatedAt'] as String), ); Map _$$DownloadedSeriesImplToJson( _$DownloadedSeriesImpl instance) => { 'id': instance.id, 'serverId': instance.serverId, 'seriesFeedUrl': instance.seriesFeedUrl, 'title': instance.title, 'coverUrl': instance.coverUrl, 'coverPath': instance.coverPath, 'thumbnailUrl': instance.thumbnailUrl, 'thumbnailPath': instance.thumbnailPath, 'status': _$DownloadStatusEnumMap[instance.status]!, 'totalChapters': instance.totalChapters, 'downloadedChaptersCount': instance.downloadedChaptersCount, 'downloadedAt': instance.downloadedAt?.toIso8601String(), 'updatedAt': instance.updatedAt.toIso8601String(), }; const _$DownloadStatusEnumMap = { DownloadStatus.pending: 'pending', DownloadStatus.downloading: 'downloading', DownloadStatus.complete: 'complete', DownloadStatus.partial: 'partial', DownloadStatus.failed: 'failed', };