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