Aggregation.fromJson constructor
Aggregation.fromJson(
- Map json_
Implementation
Aggregation.fromJson(core.Map json_)
: this(
count: json_.containsKey('count')
? AggregationCount.fromJson(
json_['count'] as core.Map<core.String, core.dynamic>)
: null,
field:
json_.containsKey('field') ? json_['field'] as core.String : null,
frequency: json_.containsKey('frequency')
? AggregationFrequency.fromJson(
json_['frequency'] as core.Map<core.String, core.dynamic>)
: null,
histogram: json_.containsKey('histogram')
? AggregationHistogram.fromJson(
json_['histogram'] as core.Map<core.String, core.dynamic>)
: null,
sum: json_.containsKey('sum')
? AggregationSum.fromJson(
json_['sum'] as core.Map<core.String, core.dynamic>)
: null,
);