copyWithWrapped method

ExternalPaymentInitiationConsentOptions copyWithWrapped({
  1. Wrapped<String?>? walletId,
  2. Wrapped<bool?>? requestRefundDetails,
  3. Wrapped<String?>? iban,
  4. Wrapped<PaymentInitiationOptionalRestrictionBacs?>? bacs,
})

Implementation

ExternalPaymentInitiationConsentOptions copyWithWrapped(
    {Wrapped<String?>? walletId,
    Wrapped<bool?>? requestRefundDetails,
    Wrapped<String?>? iban,
    Wrapped<PaymentInitiationOptionalRestrictionBacs?>? bacs}) {
  return ExternalPaymentInitiationConsentOptions(
      walletId: (walletId != null ? walletId.value : this.walletId),
      requestRefundDetails: (requestRefundDetails != null
          ? requestRefundDetails.value
          : this.requestRefundDetails),
      iban: (iban != null ? iban.value : this.iban),
      bacs: (bacs != null ? bacs.value : this.bacs));
}