RunReportRequest.fromJson constructor
RunReportRequest.fromJson(
- Map json_
Implementation
RunReportRequest.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,
limit:
json_.containsKey('limit') ? json_['limit'] as core.String : null,
metricAggregations: json_.containsKey('metricAggregations')
? (json_['metricAggregations'] as core.List)
.map((value) => value as core.String)
.toList()
: 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,
offset: json_.containsKey('offset')
? json_['offset'] as core.String
: null,
orderBys: json_.containsKey('orderBys')
? (json_['orderBys'] as core.List)
.map((value) => OrderBy.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,
);