copyWithWrapped method

WatchlistScreeningSearchTerms copyWithWrapped({
  1. Wrapped<String>? watchlistProgramId,
  2. Wrapped<String>? legalName,
  3. Wrapped<String?>? dateOfBirth,
  4. Wrapped<String?>? documentNumber,
  5. Wrapped<String?>? country,
  6. Wrapped<double>? version,
})

Implementation

WatchlistScreeningSearchTerms copyWithWrapped(
    {Wrapped<String>? watchlistProgramId,
    Wrapped<String>? legalName,
    Wrapped<String?>? dateOfBirth,
    Wrapped<String?>? documentNumber,
    Wrapped<String?>? country,
    Wrapped<double>? version}) {
  return WatchlistScreeningSearchTerms(
      watchlistProgramId: (watchlistProgramId != null
          ? watchlistProgramId.value
          : this.watchlistProgramId),
      legalName: (legalName != null ? legalName.value : this.legalName),
      dateOfBirth:
          (dateOfBirth != null ? dateOfBirth.value : this.dateOfBirth),
      documentNumber: (documentNumber != null
          ? documentNumber.value
          : this.documentNumber),
      country: (country != null ? country.value : this.country),
      version: (version != null ? version.value : this.version));
}