toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (alertRule != null) 'alertRule': alertRule!,
      if (duration != null) 'duration': duration!,
      if (evaluationInterval != null)
        'evaluationInterval': evaluationInterval!,
      if (labels != null) 'labels': labels!,
      if (query != null) 'query': query!,
      if (ruleGroup != null) 'ruleGroup': ruleGroup!,
    };