copyWith method

ChapterSnapshotResponseModel copyWith({
  1. String? chapterSnapshotId,
  2. String? projectId,
  3. String? chapterId,
  4. int? createdAtUnix,
  5. String? name,
})

Implementation

ChapterSnapshotResponseModel copyWith(
    {String? chapterSnapshotId,
    String? projectId,
    String? chapterId,
    int? createdAtUnix,
    String? name}) {
  return ChapterSnapshotResponseModel(
      chapterSnapshotId: chapterSnapshotId ?? this.chapterSnapshotId,
      projectId: projectId ?? this.projectId,
      chapterId: chapterId ?? this.chapterId,
      createdAtUnix: createdAtUnix ?? this.createdAtUnix,
      name: name ?? this.name);
}