copyWithWrapped method

Implementation

PaymentConsentPeriodicAmount copyWithWrapped(
    {Wrapped<PaymentConsentPeriodicAmountAmount>? amount,
    Wrapped<enums.PaymentConsentPeriodicInterval>? interval,
    Wrapped<enums.PaymentConsentPeriodicAlignment>? alignment}) {
  return PaymentConsentPeriodicAmount(
      amount: (amount != null ? amount.value : this.amount),
      interval: (interval != null ? interval.value : this.interval),
      alignment: (alignment != null ? alignment.value : this.alignment));
}