AggregationResult.fromJson constructor

AggregationResult.fromJson(
  1. Map _json
)

Implementation

AggregationResult.fromJson(core.Map _json)
    : this(
        aggregateFields: _json.containsKey('aggregateFields')
            ? (_json['aggregateFields']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  Value.fromJson(item as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
      );