StructuredAggregationQuery constructor

StructuredAggregationQuery({
  1. StructuredQuery? structuredQuery,
  2. Iterable<StructuredAggregationQuery_Aggregation>? aggregations,
})

Implementation

factory StructuredAggregationQuery({
  StructuredQuery? structuredQuery,
  $core.Iterable<StructuredAggregationQuery_Aggregation>? aggregations,
}) {
  final $result = create();
  if (structuredQuery != null) {
    $result.structuredQuery = structuredQuery;
  }
  if (aggregations != null) {
    $result.aggregations.addAll(aggregations);
  }
  return $result;
}