AggregationResult.fromJson constructor
AggregationResult.fromJson(
- Object? j
Implementation
factory AggregationResult.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return AggregationResult(
aggregateFields: switch (json['aggregateFields']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): Value.fromJson(e.value),
},
_ => throw const FormatException('"aggregateFields" is not an object'),
},
);
}