copyWith method

NotificationScheme copyWith({
  1. String? description,
  2. String? expand,
  3. int? id,
  4. String? name,
  5. List<NotificationSchemeEvent>? notificationSchemeEvents,
  6. List<int>? projects,
  7. Scope? scope,
  8. String? self,
})

Implementation

NotificationScheme copyWith(
    {String? description,
    String? expand,
    int? id,
    String? name,
    List<NotificationSchemeEvent>? notificationSchemeEvents,
    List<int>? projects,
    Scope? scope,
    String? self}) {
  return NotificationScheme(
    description: description ?? this.description,
    expand: expand ?? this.expand,
    id: id ?? this.id,
    name: name ?? this.name,
    notificationSchemeEvents:
        notificationSchemeEvents ?? this.notificationSchemeEvents,
    projects: projects ?? this.projects,
    scope: scope ?? this.scope,
    self: self ?? this.self,
  );
}