toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final targetValue = this.targetValue;
  final customizedMetricSpecification = this.customizedMetricSpecification;
  final disableScaleIn = this.disableScaleIn;
  final predefinedMetricSpecification = this.predefinedMetricSpecification;
  return {
    'TargetValue': targetValue,
    if (customizedMetricSpecification != null)
      'CustomizedMetricSpecification': customizedMetricSpecification,
    if (disableScaleIn != null) 'DisableScaleIn': disableScaleIn,
    if (predefinedMetricSpecification != null)
      'PredefinedMetricSpecification': predefinedMetricSpecification,
  };
}