RunPivotReportResponse.fromJson constructor
RunPivotReportResponse.fromJson(
- 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,
);