FacetCounts constructor
FacetCounts({
- String? collectionName,
- String? key,
- Filter? filter,
- Int64? limit,
- bool? exact,
- Int64? timeout,
- ReadConsistency? readConsistency,
- 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;
}