copyWithWrapped method

EntityWatchlistScreeningSearchTerms copyWithWrapped({
  1. Wrapped<String>? entityWatchlistProgramId,
  2. Wrapped<String>? legalName,
  3. Wrapped<String?>? documentNumber,
  4. Wrapped<String?>? emailAddress,
  5. Wrapped<String?>? country,
  6. Wrapped<String?>? phoneNumber,
  7. Wrapped<String?>? url,
  8. Wrapped<double>? version,
})

Implementation

EntityWatchlistScreeningSearchTerms copyWithWrapped(
    {Wrapped<String>? entityWatchlistProgramId,
    Wrapped<String>? legalName,
    Wrapped<String?>? documentNumber,
    Wrapped<String?>? emailAddress,
    Wrapped<String?>? country,
    Wrapped<String?>? phoneNumber,
    Wrapped<String?>? url,
    Wrapped<double>? version}) {
  return EntityWatchlistScreeningSearchTerms(
      entityWatchlistProgramId: (entityWatchlistProgramId != null
          ? entityWatchlistProgramId.value
          : this.entityWatchlistProgramId),
      legalName: (legalName != null ? legalName.value : this.legalName),
      documentNumber: (documentNumber != null
          ? documentNumber.value
          : this.documentNumber),
      emailAddress:
          (emailAddress != null ? emailAddress.value : this.emailAddress),
      country: (country != null ? country.value : this.country),
      phoneNumber:
          (phoneNumber != null ? phoneNumber.value : this.phoneNumber),
      url: (url != null ? url.value : this.url),
      version: (version != null ? version.value : this.version));
}