ReportRequest.fromJson constructor
ReportRequest.fromJson(
- Map json_
Implementation
ReportRequest.fromJson(core.Map json_)
: this(
cohortGroup: json_.containsKey('cohortGroup')
? CohortGroup.fromJson(
json_['cohortGroup'] as core.Map<core.String, core.dynamic>)
: null,
dateRanges: json_.containsKey('dateRanges')
? (json_['dateRanges'] as core.List)
.map((value) => DateRange.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dimensionFilterClauses: json_.containsKey('dimensionFilterClauses')
? (json_['dimensionFilterClauses'] as core.List)
.map((value) => DimensionFilterClause.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dimensions: json_.containsKey('dimensions')
? (json_['dimensions'] as core.List)
.map((value) => Dimension.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
filtersExpression: json_.containsKey('filtersExpression')
? json_['filtersExpression'] as core.String
: null,
hideTotals: json_.containsKey('hideTotals')
? json_['hideTotals'] as core.bool
: null,
hideValueRanges: json_.containsKey('hideValueRanges')
? json_['hideValueRanges'] as core.bool
: null,
includeEmptyRows: json_.containsKey('includeEmptyRows')
? json_['includeEmptyRows'] as core.bool
: null,
metricFilterClauses: json_.containsKey('metricFilterClauses')
? (json_['metricFilterClauses'] as core.List)
.map((value) => MetricFilterClause.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
metrics: json_.containsKey('metrics')
? (json_['metrics'] as core.List)
.map((value) => Metric.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
orderBys: json_.containsKey('orderBys')
? (json_['orderBys'] as core.List)
.map((value) => OrderBy.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
pageSize: json_.containsKey('pageSize')
? json_['pageSize'] as core.int
: null,
pageToken: json_.containsKey('pageToken')
? json_['pageToken'] as core.String
: null,
pivots: json_.containsKey('pivots')
? (json_['pivots'] as core.List)
.map((value) => Pivot.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
samplingLevel: json_.containsKey('samplingLevel')
? json_['samplingLevel'] as core.String
: null,
segments: json_.containsKey('segments')
? (json_['segments'] as core.List)
.map((value) => Segment.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
viewId: json_.containsKey('viewId')
? json_['viewId'] as core.String
: null,
);