copyWith method

CourseOverviewByIdResponse copyWith({
  1. int? id,
  2. String? name,
  3. bool? isArchived,
  4. PublicationState? state,
  5. String? publishDate,
  6. String? publishedAt,
  7. CourseSettings? settings,
  8. 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,
  );
}