copyWithWrapped method

PaymentStatusUpdateWebhook copyWithWrapped({
  1. Wrapped<String>? webhookType,
  2. Wrapped<String>? webhookCode,
  3. Wrapped<String>? paymentId,
  4. Wrapped<PaymentInitiationPaymentStatus>? newPaymentStatus,
  5. Wrapped<PaymentInitiationPaymentStatus>? oldPaymentStatus,
  6. Wrapped<String?>? originalReference,
  7. Wrapped<String?>? adjustedReference,
  8. Wrapped<DateTime?>? originalStartDate,
  9. Wrapped<DateTime?>? adjustedStartDate,
  10. Wrapped<DateTime>? timestamp,
  11. Wrapped<PlaidError?>? error,
  12. Wrapped<WebhookEnvironmentValues>? environment,
})

Implementation

PaymentStatusUpdateWebhook copyWithWrapped(
    {Wrapped<String>? webhookType,
    Wrapped<String>? webhookCode,
    Wrapped<String>? paymentId,
    Wrapped<enums.PaymentInitiationPaymentStatus>? newPaymentStatus,
    Wrapped<enums.PaymentInitiationPaymentStatus>? oldPaymentStatus,
    Wrapped<String?>? originalReference,
    Wrapped<String?>? adjustedReference,
    Wrapped<DateTime?>? originalStartDate,
    Wrapped<DateTime?>? adjustedStartDate,
    Wrapped<DateTime>? timestamp,
    Wrapped<PlaidError?>? error,
    Wrapped<enums.WebhookEnvironmentValues>? environment}) {
  return PaymentStatusUpdateWebhook(
      webhookType:
          (webhookType != null ? webhookType.value : this.webhookType),
      webhookCode:
          (webhookCode != null ? webhookCode.value : this.webhookCode),
      paymentId: (paymentId != null ? paymentId.value : this.paymentId),
      newPaymentStatus: (newPaymentStatus != null
          ? newPaymentStatus.value
          : this.newPaymentStatus),
      oldPaymentStatus: (oldPaymentStatus != null
          ? oldPaymentStatus.value
          : this.oldPaymentStatus),
      originalReference: (originalReference != null
          ? originalReference.value
          : this.originalReference),
      adjustedReference: (adjustedReference != null
          ? adjustedReference.value
          : this.adjustedReference),
      originalStartDate: (originalStartDate != null
          ? originalStartDate.value
          : this.originalStartDate),
      adjustedStartDate: (adjustedStartDate != null
          ? adjustedStartDate.value
          : this.adjustedStartDate),
      timestamp: (timestamp != null ? timestamp.value : this.timestamp),
      error: (error != null ? error.value : this.error),
      environment:
          (environment != null ? environment.value : this.environment));
}