copyWithWrapped method

ChapterSnapshotExtendedResponseModel copyWithWrapped({
  1. Wrapped<String>? chapterSnapshotId,
  2. Wrapped<String>? projectId,
  3. Wrapped<String>? chapterId,
  4. Wrapped<int>? createdAtUnix,
  5. Wrapped<String>? name,
  6. Wrapped<List<CharacterAlignmentModel>>? characterAlignments,
})

Implementation

ChapterSnapshotExtendedResponseModel copyWithWrapped(
    {Wrapped<String>? chapterSnapshotId,
    Wrapped<String>? projectId,
    Wrapped<String>? chapterId,
    Wrapped<int>? createdAtUnix,
    Wrapped<String>? name,
    Wrapped<List<CharacterAlignmentModel>>? characterAlignments}) {
  return ChapterSnapshotExtendedResponseModel(
      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),
      characterAlignments: (characterAlignments != null
          ? characterAlignments.value
          : this.characterAlignments));
}