copyWithWrapped method
WalletTransactionStatusUpdateWebhook
copyWithWrapped({
- Wrapped<
String> ? webhookType, - Wrapped<
String> ? webhookCode, - Wrapped<
String> ? transactionId, - Wrapped<
WalletTransactionStatus> ? newStatus, - Wrapped<
WalletTransactionStatus> ? oldStatus, - Wrapped<
DateTime> ? timestamp, - Wrapped<
WebhookEnvironmentValues> ? environment,
Implementation
WalletTransactionStatusUpdateWebhook copyWithWrapped(
{Wrapped<String>? webhookType,
Wrapped<String>? webhookCode,
Wrapped<String>? transactionId,
Wrapped<enums.WalletTransactionStatus>? newStatus,
Wrapped<enums.WalletTransactionStatus>? oldStatus,
Wrapped<DateTime>? timestamp,
Wrapped<enums.WebhookEnvironmentValues>? environment}) {
return WalletTransactionStatusUpdateWebhook(
webhookType:
(webhookType != null ? webhookType.value : this.webhookType),
webhookCode:
(webhookCode != null ? webhookCode.value : this.webhookCode),
transactionId:
(transactionId != null ? transactionId.value : this.transactionId),
newStatus: (newStatus != null ? newStatus.value : this.newStatus),
oldStatus: (oldStatus != null ? oldStatus.value : this.oldStatus),
timestamp: (timestamp != null ? timestamp.value : this.timestamp),
environment:
(environment != null ? environment.value : this.environment));
}