RunRealtimeReportRequest.fromJson constructor

RunRealtimeReportRequest.fromJson(
  1. Map _json
)

Implementation

RunRealtimeReportRequest.fromJson(core.Map _json)
    : this(
        dimensionFilter: _json.containsKey('dimensionFilter')
            ? FilterExpression.fromJson(_json['dimensionFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        dimensions: _json.containsKey('dimensions')
            ? (_json['dimensions'] as core.List)
                .map<Dimension>((value) => Dimension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        limit:
            _json.containsKey('limit') ? _json['limit'] as core.String : null,
        metricAggregations: _json.containsKey('metricAggregations')
            ? (_json['metricAggregations'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        metricFilter: _json.containsKey('metricFilter')
            ? FilterExpression.fromJson(
                _json['metricFilter'] as core.Map<core.String, core.dynamic>)
            : null,
        metrics: _json.containsKey('metrics')
            ? (_json['metrics'] as core.List)
                .map<Metric>((value) => Metric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        minuteRanges: _json.containsKey('minuteRanges')
            ? (_json['minuteRanges'] as core.List)
                .map<MinuteRange>((value) => MinuteRange.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        orderBys: _json.containsKey('orderBys')
            ? (_json['orderBys'] as core.List)
                .map<OrderBy>((value) => OrderBy.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        returnPropertyQuota: _json.containsKey('returnPropertyQuota')
            ? _json['returnPropertyQuota'] as core.bool
            : null,
      );