copyWithWrapped method

AccountIdentityMatchScore copyWithWrapped({
  1. Wrapped<NameMatchScore?>? legalName,
  2. Wrapped<PhoneNumberMatchScore?>? phoneNumber,
  3. Wrapped<EmailAddressMatchScore?>? emailAddress,
  4. Wrapped<AddressMatchScore?>? address,
  5. Wrapped<String>? accountId,
  6. Wrapped<AccountBalance>? balances,
  7. Wrapped<String?>? mask,
  8. Wrapped<String>? name,
  9. Wrapped<String?>? officialName,
  10. Wrapped<AccountType>? type,
  11. Wrapped<AccountSubtype?>? subtype,
  12. Wrapped<AccountIdentityMatchScoreVerificationStatus?>? verificationStatus,
})

Implementation

AccountIdentityMatchScore copyWithWrapped(
    {Wrapped<NameMatchScore?>? legalName,
    Wrapped<PhoneNumberMatchScore?>? phoneNumber,
    Wrapped<EmailAddressMatchScore?>? emailAddress,
    Wrapped<AddressMatchScore?>? address,
    Wrapped<String>? accountId,
    Wrapped<AccountBalance>? balances,
    Wrapped<String?>? mask,
    Wrapped<String>? name,
    Wrapped<String?>? officialName,
    Wrapped<enums.AccountType>? type,
    Wrapped<enums.AccountSubtype?>? subtype,
    Wrapped<enums.AccountIdentityMatchScoreVerificationStatus?>?
        verificationStatus}) {
  return AccountIdentityMatchScore(
      legalName: (legalName != null ? legalName.value : this.legalName),
      phoneNumber:
          (phoneNumber != null ? phoneNumber.value : this.phoneNumber),
      emailAddress:
          (emailAddress != null ? emailAddress.value : this.emailAddress),
      address: (address != null ? address.value : this.address),
      accountId: (accountId != null ? accountId.value : this.accountId),
      balances: (balances != null ? balances.value : this.balances),
      mask: (mask != null ? mask.value : this.mask),
      name: (name != null ? name.value : this.name),
      officialName:
          (officialName != null ? officialName.value : this.officialName),
      type: (type != null ? type.value : this.type),
      subtype: (subtype != null ? subtype.value : this.subtype),
      verificationStatus: (verificationStatus != null
          ? verificationStatus.value
          : this.verificationStatus));
}