copyWithWrapped method

CourseThemeSummaryByIdResponse copyWithWrapped({
  1. Wrapped<int>? id,
  2. Wrapped<String>? name,
  3. Wrapped<PublicationState>? state,
  4. Wrapped<String?>? publishDate,
  5. Wrapped<String?>? publishedAt,
  6. Wrapped<int>? order,
  7. Wrapped<CourseCategory>? category,
  8. Wrapped<int>? categoryCover,
})

Implementation

CourseThemeSummaryByIdResponse copyWithWrapped({
  Wrapped<int>? id,
  Wrapped<String>? name,
  Wrapped<enums.PublicationState>? state,
  Wrapped<String?>? publishDate,
  Wrapped<String?>? publishedAt,
  Wrapped<int>? order,
  Wrapped<enums.CourseCategory>? category,
  Wrapped<int>? categoryCover,
}) {
  return CourseThemeSummaryByIdResponse(
    id: (id != null ? id.value : this.id),
    name: (name != null ? name.value : this.name),
    state: (state != null ? state.value : this.state),
    publishDate: (publishDate != null ? publishDate.value : this.publishDate),
    publishedAt: (publishedAt != null ? publishedAt.value : this.publishedAt),
    order: (order != null ? order.value : this.order),
    category: (category != null ? category.value : this.category),
    categoryCover: (categoryCover != null
        ? categoryCover.value
        : this.categoryCover),
  );
}