FacetCounts constructor

FacetCounts({
  1. String? collectionName,
  2. String? key,
  3. Filter? filter,
  4. Int64? limit,
  5. bool? exact,
  6. Int64? timeout,
  7. ReadConsistency? readConsistency,
  8. ShardKeySelector? shardKeySelector,
})

Implementation

factory FacetCounts({
  $core.String? collectionName,
  $core.String? key,
  Filter? filter,
  $fixnum.Int64? limit,
  $core.bool? exact,
  $fixnum.Int64? timeout,
  ReadConsistency? readConsistency,
  ShardKeySelector? shardKeySelector,
}) {
  final $result = create();
  if (collectionName != null) {
    $result.collectionName = collectionName;
  }
  if (key != null) {
    $result.key = key;
  }
  if (filter != null) {
    $result.filter = filter;
  }
  if (limit != null) {
    $result.limit = limit;
  }
  if (exact != null) {
    $result.exact = exact;
  }
  if (timeout != null) {
    $result.timeout = timeout;
  }
  if (readConsistency != null) {
    $result.readConsistency = readConsistency;
  }
  if (shardKeySelector != null) {
    $result.shardKeySelector = shardKeySelector;
  }
  return $result;
}