copyWith method
ChapterWithContentResponseModel
copyWith({
- String? chapterId,
- String? name,
- dynamic lastConversionDateUnix,
- dynamic conversionProgress,
- bool? canBeDownloaded,
- ChapterWithContentResponseModelState? state,
- dynamic statistics,
- dynamic lastConversionError,
- ChapterContentResponseModel? content,
Implementation
ChapterWithContentResponseModel copyWith(
{String? chapterId,
String? name,
dynamic lastConversionDateUnix,
dynamic conversionProgress,
bool? canBeDownloaded,
enums.ChapterWithContentResponseModelState? state,
dynamic statistics,
dynamic lastConversionError,
ChapterContentResponseModel? content}) {
return ChapterWithContentResponseModel(
chapterId: chapterId ?? this.chapterId,
name: name ?? this.name,
lastConversionDateUnix:
lastConversionDateUnix ?? this.lastConversionDateUnix,
conversionProgress: conversionProgress ?? this.conversionProgress,
canBeDownloaded: canBeDownloaded ?? this.canBeDownloaded,
state: state ?? this.state,
statistics: statistics ?? this.statistics,
lastConversionError: lastConversionError ?? this.lastConversionError,
content: content ?? this.content);
}