copyWithWrapped method

CourseOverviewByIdResponse copyWithWrapped({
  1. Wrapped<int>? id,
  2. Wrapped<String>? name,
  3. Wrapped<bool>? isArchived,
  4. Wrapped<PublicationState>? state,
  5. Wrapped<String?>? publishDate,
  6. Wrapped<String?>? publishedAt,
  7. Wrapped<CourseSettings>? settings,
  8. Wrapped<List<CourseThemeItem>>? themes,
})

Implementation

CourseOverviewByIdResponse copyWithWrapped({
  Wrapped<int>? id,
  Wrapped<String>? name,
  Wrapped<bool>? isArchived,
  Wrapped<enums.PublicationState>? state,
  Wrapped<String?>? publishDate,
  Wrapped<String?>? publishedAt,
  Wrapped<CourseSettings>? settings,
  Wrapped<List<CourseThemeItem>>? themes,
}) {
  return CourseOverviewByIdResponse(
    id: (id != null ? id.value : this.id),
    name: (name != null ? name.value : this.name),
    isArchived: (isArchived != null ? isArchived.value : this.isArchived),
    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),
    themes: (themes != null ? themes.value : this.themes),
  );
}