DocumentFilter constructor

DocumentFilter([
  1. Country? country,
  2. Region? region,
  3. DocumentType? documentType
])

Represents the document filter. Used with other classes like the ClassFilter, DocumentRules and the DocumentAnonymizationSettings.

All parameters are optional, and do not need to be added. The filter can be set to be more generic (for example, to only accept document from USA):

DocumentFilter(Country.usa);

or, it can be set to be more specific (for example, to specifically accept USA drivers licenses from California):

DocumentFilter(Country.usa, Region.california, DocumentType.dl);

Implementation

DocumentFilter([this.country, this.region, this.documentType]);