copyWithWrapped method

WalletTransactionStatusUpdateWebhook copyWithWrapped({
  1. Wrapped<String>? webhookType,
  2. Wrapped<String>? webhookCode,
  3. Wrapped<String>? transactionId,
  4. Wrapped<WalletTransactionStatus>? newStatus,
  5. Wrapped<WalletTransactionStatus>? oldStatus,
  6. Wrapped<DateTime>? timestamp,
  7. 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));
}