copyWith method

EventNotification copyWith({
  1. String? emailAddress,
  2. String? expand,
  3. FieldDetails? field,
  4. GroupName? group,
  5. int? id,
  6. EventNotificationNotificationType? notificationType,
  7. String? parameter,
  8. ProjectRole? projectRole,
  9. String? recipient,
  10. UserDetails? user,
})

Implementation

EventNotification copyWith(
    {String? emailAddress,
    String? expand,
    FieldDetails? field,
    GroupName? group,
    int? id,
    EventNotificationNotificationType? notificationType,
    String? parameter,
    ProjectRole? projectRole,
    String? recipient,
    UserDetails? user}) {
  return EventNotification(
    emailAddress: emailAddress ?? this.emailAddress,
    expand: expand ?? this.expand,
    field: field ?? this.field,
    group: group ?? this.group,
    id: id ?? this.id,
    notificationType: notificationType ?? this.notificationType,
    parameter: parameter ?? this.parameter,
    projectRole: projectRole ?? this.projectRole,
    recipient: recipient ?? this.recipient,
    user: user ?? this.user,
  );
}