copyWithWrapped method

WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountRequest copyWithWrapped({
  1. Wrapped<String?>? accountId,
  2. Wrapped<String?>? profile,
  3. Wrapped<bool?>? isDefaultAccount,
  4. Wrapped<bool?>? profileUpdate,
  5. Wrapped<bool?>? cardOnFilePermission,
  6. Wrapped<bool?>? accountUpdaterOptOut,
  7. Wrapped<String?>? accountType,
  8. Wrapped<String?>? account,
  9. Wrapped<String?>? bankAba,
  10. Wrapped<String?>? expiry,
  11. Wrapped<String?>? name,
  12. Wrapped<String?>? address,
  13. Wrapped<String?>? address2,
  14. Wrapped<String?>? city,
  15. Wrapped<String?>? region,
  16. Wrapped<String?>? countryId,
  17. Wrapped<String?>? phone,
  18. Wrapped<String?>? postalCode,
  19. Wrapped<String?>? company,
  20. Wrapped<String?>? email,
})

Implementation

WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountRequest
    copyWithWrapped(
        {Wrapped<String?>? accountId,
        Wrapped<String?>? profile,
        Wrapped<bool?>? isDefaultAccount,
        Wrapped<bool?>? profileUpdate,
        Wrapped<bool?>? cardOnFilePermission,
        Wrapped<bool?>? accountUpdaterOptOut,
        Wrapped<String?>? accountType,
        Wrapped<String?>? account,
        Wrapped<String?>? bankAba,
        Wrapped<String?>? expiry,
        Wrapped<String?>? name,
        Wrapped<String?>? address,
        Wrapped<String?>? address2,
        Wrapped<String?>? city,
        Wrapped<String?>? region,
        Wrapped<String?>? countryId,
        Wrapped<String?>? phone,
        Wrapped<String?>? postalCode,
        Wrapped<String?>? company,
        Wrapped<String?>? email}) {
  return WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountRequest(
      accountId: (accountId != null ? accountId.value : this.accountId),
      profile: (profile != null ? profile.value : this.profile),
      isDefaultAccount: (isDefaultAccount != null
          ? isDefaultAccount.value
          : this.isDefaultAccount),
      profileUpdate:
          (profileUpdate != null ? profileUpdate.value : this.profileUpdate),
      cardOnFilePermission: (cardOnFilePermission != null
          ? cardOnFilePermission.value
          : this.cardOnFilePermission),
      accountUpdaterOptOut: (accountUpdaterOptOut != null
          ? accountUpdaterOptOut.value
          : this.accountUpdaterOptOut),
      accountType:
          (accountType != null ? accountType.value : this.accountType),
      account: (account != null ? account.value : this.account),
      bankAba: (bankAba != null ? bankAba.value : this.bankAba),
      expiry: (expiry != null ? expiry.value : this.expiry),
      name: (name != null ? name.value : this.name),
      address: (address != null ? address.value : this.address),
      address2: (address2 != null ? address2.value : this.address2),
      city: (city != null ? city.value : this.city),
      region: (region != null ? region.value : this.region),
      countryId: (countryId != null ? countryId.value : this.countryId),
      phone: (phone != null ? phone.value : this.phone),
      postalCode: (postalCode != null ? postalCode.value : this.postalCode),
      company: (company != null ? company.value : this.company),
      email: (email != null ? email.value : this.email));
}