PrometheusQueryLanguageCondition.fromJson constructor

PrometheusQueryLanguageCondition.fromJson(
  1. Map json_
)

Implementation

PrometheusQueryLanguageCondition.fromJson(core.Map json_)
    : this(
        alertRule: json_.containsKey('alertRule')
            ? json_['alertRule'] as core.String
            : null,
        duration: json_.containsKey('duration')
            ? json_['duration'] as core.String
            : null,
        evaluationInterval: json_.containsKey('evaluationInterval')
            ? json_['evaluationInterval'] as core.String
            : null,
        labels: json_.containsKey('labels')
            ? (json_['labels'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        query:
            json_.containsKey('query') ? json_['query'] as core.String : null,
        ruleGroup: json_.containsKey('ruleGroup')
            ? json_['ruleGroup'] as core.String
            : null,
      );