toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (aggregationPeriod != null) 'aggregationPeriod': aggregationPeriod!,
  if (alertThreshold != null) 'alertThreshold': alertThreshold!,
  if (disableAlert != null) 'disableAlert': disableAlert!,
  if (displayName != null) 'displayName': displayName!,
  if (durationThreshold != null) 'durationThreshold': durationThreshold!,
  if (metricType != null) 'metricType': metricType!,
  if (onlyFinalAttempt != null) 'onlyFinalAttempt': onlyFinalAttempt!,
  if (thresholdType != null) 'thresholdType': thresholdType!,
  if (thresholdValue != null) 'thresholdValue': thresholdValue!,
};