copyWith method

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

Implementation

WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountRequest
copyWith({
  String? accountId,
  String? profile,
  bool? isDefaultAccount,
  bool? profileUpdate,
  bool? cardOnFilePermission,
  bool? accountUpdaterOptOut,
  String? accountType,
  String? account,
  String? bankAba,
  String? expiry,
  String? name,
  String? address,
  String? address2,
  String? city,
  String? region,
  String? countryId,
  String? phone,
  String? postalCode,
  String? company,
  String? email,
}) {
  return WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountRequest(
    accountId: accountId ?? this.accountId,
    profile: profile ?? this.profile,
    isDefaultAccount: isDefaultAccount ?? this.isDefaultAccount,
    profileUpdate: profileUpdate ?? this.profileUpdate,
    cardOnFilePermission: cardOnFilePermission ?? this.cardOnFilePermission,
    accountUpdaterOptOut: accountUpdaterOptOut ?? this.accountUpdaterOptOut,
    accountType: accountType ?? this.accountType,
    account: account ?? this.account,
    bankAba: bankAba ?? this.bankAba,
    expiry: expiry ?? this.expiry,
    name: name ?? this.name,
    address: address ?? this.address,
    address2: address2 ?? this.address2,
    city: city ?? this.city,
    region: region ?? this.region,
    countryId: countryId ?? this.countryId,
    phone: phone ?? this.phone,
    postalCode: postalCode ?? this.postalCode,
    company: company ?? this.company,
    email: email ?? this.email,
  );
}