copyWith method
      
NotificationEvent
copyWith({ 
    
    
- String? description,
- int? id,
- String? name,
- NotificationEvent? templateEvent,
Implementation
NotificationEvent copyWith(
    {String? description,
    int? id,
    String? name,
    NotificationEvent? templateEvent}) {
  return NotificationEvent(
    description: description ?? this.description,
    id: id ?? this.id,
    name: name ?? this.name,
    templateEvent: templateEvent ?? this.templateEvent,
  );
}