Condition.fromJson constructor

Condition.fromJson(
  1. Map json_
)

Implementation

Condition.fromJson(core.Map json_)
    : this(
        conditionAbsent: json_.containsKey('conditionAbsent')
            ? MetricAbsence.fromJson(json_['conditionAbsent']
                as core.Map<core.String, core.dynamic>)
            : null,
        conditionMatchedLog: json_.containsKey('conditionMatchedLog')
            ? LogMatch.fromJson(json_['conditionMatchedLog']
                as core.Map<core.String, core.dynamic>)
            : null,
        conditionMonitoringQueryLanguage:
            json_.containsKey('conditionMonitoringQueryLanguage')
                ? MonitoringQueryLanguageCondition.fromJson(
                    json_['conditionMonitoringQueryLanguage']
                        as core.Map<core.String, core.dynamic>)
                : null,
        conditionPrometheusQueryLanguage:
            json_.containsKey('conditionPrometheusQueryLanguage')
                ? PrometheusQueryLanguageCondition.fromJson(
                    json_['conditionPrometheusQueryLanguage']
                        as core.Map<core.String, core.dynamic>)
                : null,
        conditionThreshold: json_.containsKey('conditionThreshold')
            ? MetricThreshold.fromJson(json_['conditionThreshold']
                as core.Map<core.String, core.dynamic>)
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
      );