StructuredAggregationQuery.fromJson constructor

StructuredAggregationQuery.fromJson(
  1. Map json_
)

Implementation

StructuredAggregationQuery.fromJson(core.Map json_)
    : this(
        aggregations: json_.containsKey('aggregations')
            ? (json_['aggregations'] as core.List)
                .map((value) => Aggregation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        structuredQuery: json_.containsKey('structuredQuery')
            ? StructuredQuery.fromJson(json_['structuredQuery']
                as core.Map<core.String, core.dynamic>)
            : null,
      );