GlpiSearchCriteria constructor Null safety

GlpiSearchCriteria(
  1. int field,
  2. GlpiItemType? type,
  3. dynamic value,
  4. GlpiSearchType searchType,
  5. {GlpiSearchLink? link,
  6. bool meta = false}
)

Create a new search criteria for GlpiClient.searchItems link is the logical link between the search criteria field is the id of the search option (See : GlpiClient.listSearchOptions) meta is true if the search option is a meta one type is only used if the search option is a meta one searchType is the search type (See : GlpiSearchType) value is the value to search for See https://github.com/glpi-project/glpi/blob/master/apirest.md#search-items

Implementation

GlpiSearchCriteria(this.field, this.type, this.value, this.searchType,
    {this.link, this.meta = false});