copyWithWrapped method
FDXNotification
copyWithWrapped({
- Wrapped<
String> ? notificationId, - Wrapped<
FDXNotificationType> ? type, - Wrapped<
String> ? sentOn, - Wrapped<
FDXNotificationCategory> ? category, - Wrapped<
FDXNotificationSeverity?> ? severity, - Wrapped<
FDXNotificationPriority?> ? priority, - Wrapped<
FDXParty> ? publisher, - Wrapped<
FDXParty?> ? subscriber, - Wrapped<
FDXNotificationPayload> ? notificationPayload, - 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));
}