MetricThreshold.fromJson constructor
MetricThreshold.fromJson(
- Map json_
Implementation
MetricThreshold.fromJson(core.Map json_)
: this(
aggregations: json_.containsKey('aggregations')
? (json_['aggregations'] as core.List)
.map((value) => Aggregation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
comparison: json_.containsKey('comparison')
? json_['comparison'] as core.String
: null,
denominatorAggregations: json_.containsKey('denominatorAggregations')
? (json_['denominatorAggregations'] as core.List)
.map((value) => Aggregation.fromJson(
value as core.Map<core.String, core.dynamic>))
.toList()
: null,
denominatorFilter: json_.containsKey('denominatorFilter')
? json_['denominatorFilter'] as core.String
: null,
duration: json_.containsKey('duration')
? json_['duration'] as core.String
: null,
evaluationMissingData: json_.containsKey('evaluationMissingData')
? json_['evaluationMissingData'] as core.String
: null,
filter: json_.containsKey('filter')
? json_['filter'] as core.String
: null,
forecastOptions: json_.containsKey('forecastOptions')
? ForecastOptions.fromJson(json_['forecastOptions']
as core.Map<core.String, core.dynamic>)
: null,
thresholdValue: json_.containsKey('thresholdValue')
? (json_['thresholdValue'] as core.num).toDouble()
: null,
trigger: json_.containsKey('trigger')
? Trigger.fromJson(
json_['trigger'] as core.Map<core.String, core.dynamic>)
: null,
);