copyWith method

EntityWatchlistSearchTerms copyWith({
  1. String? entityWatchlistProgramId,
  2. String? legalName,
  3. String? documentNumber,
  4. String? emailAddress,
  5. String? country,
  6. String? phoneNumber,
  7. String? url,
})

Implementation

EntityWatchlistSearchTerms copyWith(
    {String? entityWatchlistProgramId,
    String? legalName,
    String? documentNumber,
    String? emailAddress,
    String? country,
    String? phoneNumber,
    String? url}) {
  return EntityWatchlistSearchTerms(
      entityWatchlistProgramId:
          entityWatchlistProgramId ?? this.entityWatchlistProgramId,
      legalName: legalName ?? this.legalName,
      documentNumber: documentNumber ?? this.documentNumber,
      emailAddress: emailAddress ?? this.emailAddress,
      country: country ?? this.country,
      phoneNumber: phoneNumber ?? this.phoneNumber,
      url: url ?? this.url);
}