RunPivotReportResponse.fromJson constructor

RunPivotReportResponse.fromJson(
  1. Map _json
)

Implementation

RunPivotReportResponse.fromJson(core.Map _json)
    : this(
        aggregates: _json.containsKey('aggregates')
            ? (_json['aggregates'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        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,
        metadata: _json.containsKey('metadata')
            ? ResponseMetaData.fromJson(
                _json['metadata'] as core.Map<core.String, core.dynamic>)
            : null,
        metricHeaders: _json.containsKey('metricHeaders')
            ? (_json['metricHeaders'] as core.List)
                .map((value) => MetricHeader.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        pivotHeaders: _json.containsKey('pivotHeaders')
            ? (_json['pivotHeaders'] as core.List)
                .map((value) => PivotHeader.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,
        rows: _json.containsKey('rows')
            ? (_json['rows'] as core.List)
                .map((value) => Row.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );