copyWithWrapped method

TaskSolution copyWithWrapped({
  1. Wrapped<TaskType>? type,
  2. Wrapped<String?>? solutionUrl,
  3. Wrapped<List<TaskSolutionAnswersItem>?>? answers,
  4. Wrapped<List<TaskAttachment>?>? attachments,
})

Implementation

TaskSolution copyWithWrapped({
  Wrapped<enums.TaskType>? type,
  Wrapped<String?>? solutionUrl,
  Wrapped<List<TaskSolutionAnswersItem>?>? answers,
  Wrapped<List<TaskAttachment>?>? attachments,
}) {
  return TaskSolution(
    type: (type != null ? type.value : this.type),
    solutionUrl: (solutionUrl != null ? solutionUrl.value : this.solutionUrl),
    answers: (answers != null ? answers.value : this.answers),
    attachments: (attachments != null ? attachments.value : this.attachments),
  );
}