copyWithWrapped method
CourseSummaryByIdResponse
copyWithWrapped({
- Wrapped<
int> ? id, - Wrapped<
String> ? name, - Wrapped<
PublicationState> ? state, - Wrapped<
String?> ? publishDate, - Wrapped<
String?> ? publishedAt, - Wrapped<
CourseSettings> ? settings, - Wrapped<
int?> ? subjectId, - Wrapped<
bool> ? isArchived, - Wrapped<
CourseCategory> ? category, - Wrapped<
CourseCategoryCover> ? categoryCover,
Implementation
CourseSummaryByIdResponse copyWithWrapped({
Wrapped<int>? id,
Wrapped<String>? name,
Wrapped<enums.PublicationState>? state,
Wrapped<String?>? publishDate,
Wrapped<String?>? publishedAt,
Wrapped<CourseSettings>? settings,
Wrapped<int?>? subjectId,
Wrapped<bool>? isArchived,
Wrapped<enums.CourseCategory>? category,
Wrapped<enums.CourseCategoryCover>? categoryCover,
}) {
return CourseSummaryByIdResponse(
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),
settings: (settings != null ? settings.value : this.settings),
subjectId: (subjectId != null ? subjectId.value : this.subjectId),
isArchived: (isArchived != null ? isArchived.value : this.isArchived),
category: (category != null ? category.value : this.category),
categoryCover: (categoryCover != null
? categoryCover.value
: this.categoryCover),
);
}