RunRealtimeReportResponse.fromJson constructor

RunRealtimeReportResponse.fromJson(
  1. Map _json
)

Implementation

RunRealtimeReportResponse.fromJson(core.Map _json)
    : this(
        dimensionHeaders: _json.containsKey('dimensionHeaders')
            ? (_json['dimensionHeaders'] as core.List)
                .map((value) => DimensionHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        maximums: _json.containsKey('maximums')
            ? (_json['maximums'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        metricHeaders: _json.containsKey('metricHeaders')
            ? (_json['metricHeaders'] as core.List)
                .map((value) => MetricHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        minimums: _json.containsKey('minimums')
            ? (_json['minimums'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        propertyQuota: _json.containsKey('propertyQuota')
            ? PropertyQuota.fromJson(
                _json['propertyQuota'] as core.Map<core.String, core.dynamic>)
            : null,
        rowCount: _json.containsKey('rowCount')
            ? _json['rowCount'] as core.int
            : null,
        rows: _json.containsKey('rows')
            ? (_json['rows'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        totals: _json.containsKey('totals')
            ? (_json['totals'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );