MediationReportSpec.fromJson constructor
MediationReportSpec.fromJson(
- Map json_
Implementation
MediationReportSpec.fromJson(core.Map json_)
: this(
dateRange: json_.containsKey('dateRange')
? DateRange.fromJson(
json_['dateRange'] as core.Map<core.String, core.dynamic>)
: null,
dimensionFilters: json_.containsKey('dimensionFilters')
? (json_['dimensionFilters'] as core.List)
.map((value) => MediationReportSpecDimensionFilter.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
dimensions: json_.containsKey('dimensions')
? (json_['dimensions'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
localizationSettings: json_.containsKey('localizationSettings')
? LocalizationSettings.fromJson(json_['localizationSettings']
as core.Map<core.String, core.dynamic>)
: null,
maxReportRows: json_.containsKey('maxReportRows')
? json_['maxReportRows'] as core.int
: null,
metrics: json_.containsKey('metrics')
? (json_['metrics'] as core.List)
.map((value) => value as core.String)
.toList()
: null,
sortConditions: json_.containsKey('sortConditions')
? (json_['sortConditions'] as core.List)
.map((value) => MediationReportSpecSortCondition.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
timeZone: json_.containsKey('timeZone')
? json_['timeZone'] as core.String
: null,
);