copyWithWrapped method
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),
);
}