copyWithWrapped method

WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountResponse copyWithWrapped({
  1. Wrapped<bool?>? success,
  2. Wrapped<WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateProfileResponseStatusCodes?>? status,
  3. Wrapped<String?>? statusText,
  4. Wrapped<String?>? profileId,
  5. Wrapped<String?>? accountId,
  6. Wrapped<String?>? responseStatus,
  7. Wrapped<String?>? token,
  8. Wrapped<String?>? responseCode,
  9. Wrapped<String?>? responseText,
  10. Wrapped<WebApiModulesPluginsCreditCardProcessCreditCardPaymentCardTypes?>? cardType,
  11. Wrapped<String?>? expiry,
  12. Wrapped<String?>? cardholderName,
  13. Wrapped<String?>? address,
  14. Wrapped<String?>? address2,
  15. Wrapped<String?>? city,
  16. Wrapped<String?>? region,
  17. Wrapped<String?>? country,
  18. Wrapped<String?>? phone,
  19. Wrapped<String?>? postal,
  20. Wrapped<String?>? email,
  21. Wrapped<String?>? company,
  22. Wrapped<bool?>? defaultAccount,
  23. Wrapped<bool?>? gsaCard,
  24. Wrapped<bool?>? accountUpdaterOptOut,
  25. Wrapped<bool?>? cardOnFilePermission,
})

Implementation

WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountResponse
copyWithWrapped({
  Wrapped<bool?>? success,
  Wrapped<
    enums.WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateProfileResponseStatusCodes?
  >?
  status,
  Wrapped<String?>? statusText,
  Wrapped<String?>? profileId,
  Wrapped<String?>? accountId,
  Wrapped<String?>? responseStatus,
  Wrapped<String?>? token,
  Wrapped<String?>? responseCode,
  Wrapped<String?>? responseText,
  Wrapped<
    enums.WebApiModulesPluginsCreditCardProcessCreditCardPaymentCardTypes?
  >?
  cardType,
  Wrapped<String?>? expiry,
  Wrapped<String?>? cardholderName,
  Wrapped<String?>? address,
  Wrapped<String?>? address2,
  Wrapped<String?>? city,
  Wrapped<String?>? region,
  Wrapped<String?>? country,
  Wrapped<String?>? phone,
  Wrapped<String?>? postal,
  Wrapped<String?>? email,
  Wrapped<String?>? company,
  Wrapped<bool?>? defaultAccount,
  Wrapped<bool?>? gsaCard,
  Wrapped<bool?>? accountUpdaterOptOut,
  Wrapped<bool?>? cardOnFilePermission,
}) {
  return WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountResponse(
    success: (success != null ? success.value : this.success),
    status: (status != null ? status.value : this.status),
    statusText: (statusText != null ? statusText.value : this.statusText),
    profileId: (profileId != null ? profileId.value : this.profileId),
    accountId: (accountId != null ? accountId.value : this.accountId),
    responseStatus: (responseStatus != null
        ? responseStatus.value
        : this.responseStatus),
    token: (token != null ? token.value : this.token),
    responseCode: (responseCode != null
        ? responseCode.value
        : this.responseCode),
    responseText: (responseText != null
        ? responseText.value
        : this.responseText),
    cardType: (cardType != null ? cardType.value : this.cardType),
    expiry: (expiry != null ? expiry.value : this.expiry),
    cardholderName: (cardholderName != null
        ? cardholderName.value
        : this.cardholderName),
    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),
    country: (country != null ? country.value : this.country),
    phone: (phone != null ? phone.value : this.phone),
    postal: (postal != null ? postal.value : this.postal),
    email: (email != null ? email.value : this.email),
    company: (company != null ? company.value : this.company),
    defaultAccount: (defaultAccount != null
        ? defaultAccount.value
        : this.defaultAccount),
    gsaCard: (gsaCard != null ? gsaCard.value : this.gsaCard),
    accountUpdaterOptOut: (accountUpdaterOptOut != null
        ? accountUpdaterOptOut.value
        : this.accountUpdaterOptOut),
    cardOnFilePermission: (cardOnFilePermission != null
        ? cardOnFilePermission.value
        : this.cardOnFilePermission),
  );
}