SearchFacet constructor

SearchFacet({
  1. StringValue? displayName,
  2. SearchFacet_SearchFacetType? type,
  3. Iterable<SearchFacetOption>? options,
  4. double? minValue,
  5. double? maxValue,
  6. bool? booleanOption,
})

Implementation

factory SearchFacet({
  $3.StringValue? displayName,
  SearchFacet_SearchFacetType? type,
  $core.Iterable<SearchFacetOption>? options,
  $core.double? minValue,
  $core.double? maxValue,
  $core.bool? booleanOption,
}) {
  final result = create();
  if (displayName != null) result.displayName = displayName;
  if (type != null) result.type = type;
  if (options != null) result.options.addAll(options);
  if (minValue != null) result.minValue = minValue;
  if (maxValue != null) result.maxValue = maxValue;
  if (booleanOption != null) result.booleanOption = booleanOption;
  return result;
}