copyWithWrapped method

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

Implementation

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