copyWith method

FDXNotification copyWith({
  1. String? notificationId,
  2. FDXNotificationType? type,
  3. String? sentOn,
  4. FDXNotificationCategory? category,
  5. FDXNotificationSeverity? severity,
  6. FDXNotificationPriority? priority,
  7. FDXParty? publisher,
  8. FDXParty? subscriber,
  9. FDXNotificationPayload? notificationPayload,
  10. FDXHateoasLink? url,
})

Implementation

FDXNotification copyWith(
    {String? notificationId,
    enums.FDXNotificationType? type,
    String? sentOn,
    enums.FDXNotificationCategory? category,
    enums.FDXNotificationSeverity? severity,
    enums.FDXNotificationPriority? priority,
    FDXParty? publisher,
    FDXParty? subscriber,
    FDXNotificationPayload? notificationPayload,
    FDXHateoasLink? url}) {
  return FDXNotification(
      notificationId: notificationId ?? this.notificationId,
      type: type ?? this.type,
      sentOn: sentOn ?? this.sentOn,
      category: category ?? this.category,
      severity: severity ?? this.severity,
      priority: priority ?? this.priority,
      publisher: publisher ?? this.publisher,
      subscriber: subscriber ?? this.subscriber,
      notificationPayload: notificationPayload ?? this.notificationPayload,
      url: url ?? this.url);
}