RunPivotReportRequest.fromJson constructor
RunPivotReportRequest.fromJson(
- Map json_
Implementation
RunPivotReportRequest.fromJson(core.Map json_)
: this(
cohortSpec: json_.containsKey('cohortSpec')
? CohortSpec.fromJson(
json_['cohortSpec'] as core.Map<core.String, core.dynamic>)
: null,
currencyCode: json_.containsKey('currencyCode')
? json_['currencyCode'] as core.String
: null,
dateRanges: json_.containsKey('dateRanges')
? (json_['dateRanges'] as core.List)
.map((value) => DateRange.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
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((value) => Dimension.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
keepEmptyRows: json_.containsKey('keepEmptyRows')
? json_['keepEmptyRows'] as core.bool
: 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((value) => Metric.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pivots: json_.containsKey('pivots')
? (json_['pivots'] as core.List)
.map((value) => Pivot.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
property: json_.containsKey('property')
? json_['property'] as core.String
: null,
returnPropertyQuota: json_.containsKey('returnPropertyQuota')
? json_['returnPropertyQuota'] as core.bool
: null,
);