copyWith method

CourseThemeSummaryByIdResponse copyWith({
  1. int? id,
  2. String? name,
  3. PublicationState? state,
  4. String? publishDate,
  5. String? publishedAt,
  6. int? order,
  7. CourseCategory? category,
  8. int? categoryCover,
})

Implementation

CourseThemeSummaryByIdResponse copyWith({
  int? id,
  String? name,
  enums.PublicationState? state,
  String? publishDate,
  String? publishedAt,
  int? order,
  enums.CourseCategory? category,
  int? categoryCover,
}) {
  return CourseThemeSummaryByIdResponse(
    id: id ?? this.id,
    name: name ?? this.name,
    state: state ?? this.state,
    publishDate: publishDate ?? this.publishDate,
    publishedAt: publishedAt ?? this.publishedAt,
    order: order ?? this.order,
    category: category ?? this.category,
    categoryCover: categoryCover ?? this.categoryCover,
  );
}