toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (aggregationPeriod != null) 'aggregationPeriod': aggregationPeriod!,
      if (alertDisabled != null) 'alertDisabled': alertDisabled!,
      if (alertName != null) 'alertName': alertName!,
      if (clientId != null) 'clientId': clientId!,
      if (durationThresholdMs != null)
        'durationThresholdMs': durationThresholdMs!,
      if (errorEnumList != null) 'errorEnumList': errorEnumList!,
      if (metricType != null) 'metricType': metricType!,
      if (numAggregationPeriods != null)
        'numAggregationPeriods': numAggregationPeriods!,
      if (onlyFinalAttempt != null) 'onlyFinalAttempt': onlyFinalAttempt!,
      if (playbookUrl != null) 'playbookUrl': playbookUrl!,
      if (thresholdType != null) 'thresholdType': thresholdType!,
      if (thresholdValue != null) 'thresholdValue': thresholdValue!,
      if (warningEnumList != null) 'warningEnumList': warningEnumList!,
    };