copyWithWrapped method

LongreadExerciseCodingMaterialItem 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<String?>? exerciseUrl,
  17. Wrapped<LongreadMaterialCoding>? coding,
})

Implementation

LongreadExerciseCodingMaterialItem 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<String?>? exerciseUrl,
  Wrapped<LongreadMaterialCoding>? coding,
}) {
  return LongreadExerciseCodingMaterialItem(
    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),
    exerciseUrl: (exerciseUrl != null ? exerciseUrl.value : this.exerciseUrl),
    coding: (coding != null ? coding.value : this.coding),
  );
}