copyWith method
CourseOverviewByIdResponse
copyWith({
- int? id,
- String? name,
- bool? isArchived,
- PublicationState? state,
- String? publishDate,
- String? publishedAt,
- CourseSettings? settings,
- List<
CourseThemeItem> ? themes,
Implementation
CourseOverviewByIdResponse copyWith({
int? id,
String? name,
bool? isArchived,
enums.PublicationState? state,
String? publishDate,
String? publishedAt,
CourseSettings? settings,
List<CourseThemeItem>? themes,
}) {
return CourseOverviewByIdResponse(
id: id ?? this.id,
name: name ?? this.name,
isArchived: isArchived ?? this.isArchived,
state: state ?? this.state,
publishDate: publishDate ?? this.publishDate,
publishedAt: publishedAt ?? this.publishedAt,
settings: settings ?? this.settings,
themes: themes ?? this.themes,
);
}