copyWithWrapped method

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

Implementation

ChapterSnapshotResponseModel copyWithWrapped(
    {Wrapped<String>? chapterSnapshotId,
    Wrapped<String>? projectId,
    Wrapped<String>? chapterId,
    Wrapped<int>? createdAtUnix,
    Wrapped<String>? name}) {
  return ChapterSnapshotResponseModel(
      chapterSnapshotId: (chapterSnapshotId != null
          ? chapterSnapshotId.value
          : this.chapterSnapshotId),
      projectId: (projectId != null ? projectId.value : this.projectId),
      chapterId: (chapterId != null ? chapterId.value : this.chapterId),
      createdAtUnix:
          (createdAtUnix != null ? createdAtUnix.value : this.createdAtUnix),
      name: (name != null ? name.value : this.name));
}