copyWithWrapped method

LongreadExerciseQuestionsMaterialItem copyWithWrapped({
  1. Wrapped<LongreadMaterialDiscriminator>? discriminator,
  2. Wrapped<PublicationState>? state,
  3. Wrapped<LongreadMaterialViewType>? viewType,
  4. Wrapped<LongreadMaterialType>? type,
  5. Wrapped<int>? id,
  6. Wrapped<int>? order,
  7. Wrapped<String>? name,
  8. Wrapped<String?>? viewContent,
  9. Wrapped<LongreadMaterialEstimation>? estimation,
  10. Wrapped<List<String>>? reviewers,
  11. Wrapped<List<String>>? assignees,
  12. Wrapped<List<LongreadMaterialAttachmentItem>>? attachments,
  13. Wrapped<String?>? backloggedAt,
  14. Wrapped<int>? taskId,
  15. Wrapped<bool>? isTrackingStudents,
  16. Wrapped<LongreadExerciseQuestionsMode>? mode,
  17. Wrapped<bool>? areQuestionsShuffled,
  18. Wrapped<ExerciseQuestionsSettings>? settings,
  19. Wrapped<int>? quizId,
  20. Wrapped<List<LongreadExerciseQuestionItem>>? questions,
})

Implementation

LongreadExerciseQuestionsMaterialItem copyWithWrapped({
  Wrapped<enums.LongreadMaterialDiscriminator>? discriminator,
  Wrapped<enums.PublicationState>? state,
  Wrapped<enums.LongreadMaterialViewType>? viewType,
  Wrapped<enums.LongreadMaterialType>? type,
  Wrapped<int>? id,
  Wrapped<int>? order,
  Wrapped<String>? name,
  Wrapped<String?>? viewContent,
  Wrapped<LongreadMaterialEstimation>? estimation,
  Wrapped<List<String>>? reviewers,
  Wrapped<List<String>>? assignees,
  Wrapped<List<LongreadMaterialAttachmentItem>>? attachments,
  Wrapped<String?>? backloggedAt,
  Wrapped<int>? taskId,
  Wrapped<bool>? isTrackingStudents,
  Wrapped<enums.LongreadExerciseQuestionsMode>? mode,
  Wrapped<bool>? areQuestionsShuffled,
  Wrapped<ExerciseQuestionsSettings>? settings,
  Wrapped<int>? quizId,
  Wrapped<List<LongreadExerciseQuestionItem>>? questions,
}) {
  return LongreadExerciseQuestionsMaterialItem(
    discriminator: (discriminator != null
        ? discriminator.value
        : this.discriminator),
    state: (state != null ? state.value : this.state),
    viewType: (viewType != null ? viewType.value : this.viewType),
    type: (type != null ? type.value : this.type),
    id: (id != null ? id.value : this.id),
    order: (order != null ? order.value : this.order),
    name: (name != null ? name.value : this.name),
    viewContent: (viewContent != null ? viewContent.value : this.viewContent),
    estimation: (estimation != null ? estimation.value : this.estimation),
    reviewers: (reviewers != null ? reviewers.value : this.reviewers),
    assignees: (assignees != null ? assignees.value : this.assignees),
    attachments: (attachments != null ? attachments.value : this.attachments),
    backloggedAt: (backloggedAt != null
        ? backloggedAt.value
        : this.backloggedAt),
    taskId: (taskId != null ? taskId.value : this.taskId),
    isTrackingStudents: (isTrackingStudents != null
        ? isTrackingStudents.value
        : this.isTrackingStudents),
    mode: (mode != null ? mode.value : this.mode),
    areQuestionsShuffled: (areQuestionsShuffled != null
        ? areQuestionsShuffled.value
        : this.areQuestionsShuffled),
    settings: (settings != null ? settings.value : this.settings),
    quizId: (quizId != null ? quizId.value : this.quizId),
    questions: (questions != null ? questions.value : this.questions),
  );
}