copyWith method

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

Implementation

WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountResponse
    copyWith(
        {bool? success,
        enums.WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateProfileResponseStatusCodes?
            status,
        String? statusText,
        String? profileId,
        String? accountId,
        String? responseStatus,
        String? token,
        String? responseCode,
        String? responseText,
        enums.WebApiModulesPluginsCreditCardProcessCreditCardPaymentCardTypes?
            cardType,
        String? expiry,
        String? cardholderName,
        String? address,
        String? address2,
        String? city,
        String? region,
        String? country,
        String? phone,
        String? postal,
        String? email,
        String? company,
        bool? defaultAccount,
        bool? gsaCard,
        bool? accountUpdaterOptOut,
        bool? cardOnFilePermission}) {
  return WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountResponse(
      success: success ?? this.success,
      status: status ?? this.status,
      statusText: statusText ?? this.statusText,
      profileId: profileId ?? this.profileId,
      accountId: accountId ?? this.accountId,
      responseStatus: responseStatus ?? this.responseStatus,
      token: token ?? this.token,
      responseCode: responseCode ?? this.responseCode,
      responseText: responseText ?? this.responseText,
      cardType: cardType ?? this.cardType,
      expiry: expiry ?? this.expiry,
      cardholderName: cardholderName ?? this.cardholderName,
      address: address ?? this.address,
      address2: address2 ?? this.address2,
      city: city ?? this.city,
      region: region ?? this.region,
      country: country ?? this.country,
      phone: phone ?? this.phone,
      postal: postal ?? this.postal,
      email: email ?? this.email,
      company: company ?? this.company,
      defaultAccount: defaultAccount ?? this.defaultAccount,
      gsaCard: gsaCard ?? this.gsaCard,
      accountUpdaterOptOut: accountUpdaterOptOut ?? this.accountUpdaterOptOut,
      cardOnFilePermission:
          cardOnFilePermission ?? this.cardOnFilePermission);
}