copyWithWrapped method

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

Implementation

FDXNotification copyWithWrapped(
    {Wrapped<String>? notificationId,
    Wrapped<enums.FDXNotificationType>? type,
    Wrapped<String>? sentOn,
    Wrapped<enums.FDXNotificationCategory>? category,
    Wrapped<enums.FDXNotificationSeverity?>? severity,
    Wrapped<enums.FDXNotificationPriority?>? priority,
    Wrapped<FDXParty>? publisher,
    Wrapped<FDXParty?>? subscriber,
    Wrapped<FDXNotificationPayload>? notificationPayload,
    Wrapped<FDXHateoasLink?>? url}) {
  return FDXNotification(
      notificationId: (notificationId != null
          ? notificationId.value
          : this.notificationId),
      type: (type != null ? type.value : this.type),
      sentOn: (sentOn != null ? sentOn.value : this.sentOn),
      category: (category != null ? category.value : this.category),
      severity: (severity != null ? severity.value : this.severity),
      priority: (priority != null ? priority.value : this.priority),
      publisher: (publisher != null ? publisher.value : this.publisher),
      subscriber: (subscriber != null ? subscriber.value : this.subscriber),
      notificationPayload: (notificationPayload != null
          ? notificationPayload.value
          : this.notificationPayload),
      url: (url != null ? url.value : this.url));
}