SearchAnalyticsQueryResponse.fromJson constructor Null safety

SearchAnalyticsQueryResponse.fromJson(
  1. Map _json
)

Implementation

SearchAnalyticsQueryResponse.fromJson(core.Map _json)
    : this(
        responseAggregationType: _json.containsKey('responseAggregationType')
            ? _json['responseAggregationType'] as core.String
            : null,
        rows: _json.containsKey('rows')
            ? (_json['rows'] as core.List)
                .map((value) => ApiDataRow.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );