copyWith method

ChapterWithContentResponseModel copyWith({
  1. String? chapterId,
  2. String? name,
  3. dynamic lastConversionDateUnix,
  4. dynamic conversionProgress,
  5. bool? canBeDownloaded,
  6. ChapterWithContentResponseModelState? state,
  7. dynamic statistics,
  8. dynamic lastConversionError,
  9. 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);
}