AggregationResultHistogram.fromJson constructor

AggregationResultHistogram.fromJson(
  1. Map json_
)

Implementation

AggregationResultHistogram.fromJson(core.Map json_)
    : this(
        buckets: json_.containsKey('buckets')
            ? (json_['buckets'] as core.List)
                .map((value) => AggregationResultHistogramBucket.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );