RunAggregationQueryResponse.fromJson constructor

RunAggregationQueryResponse.fromJson(
  1. Object? j
)

Implementation

factory RunAggregationQueryResponse.fromJson(Object? j) {
  final json = j as Map<String, Object?>;
  return RunAggregationQueryResponse(
    result: switch (json['result']) {
      null => null,
      Object $1 => AggregationResult.fromJson($1),
    },
    transaction: switch (json['transaction']) {
      null => Uint8List(0),
      Object $1 => decodeBytes($1),
    },
    readTime: switch (json['readTime']) {
      null => null,
      Object $1 => Timestamp.fromJson($1),
    },
    explainMetrics: switch (json['explainMetrics']) {
      null => null,
      Object $1 => ExplainMetrics.fromJson($1),
    },
  );
}