toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final targetValue = this.targetValue;
  final customizedScalingMetricSpecification =
      this.customizedScalingMetricSpecification;
  final disableScaleIn = this.disableScaleIn;
  final estimatedInstanceWarmup = this.estimatedInstanceWarmup;
  final predefinedScalingMetricSpecification =
      this.predefinedScalingMetricSpecification;
  final scaleInCooldown = this.scaleInCooldown;
  final scaleOutCooldown = this.scaleOutCooldown;
  return {
    'TargetValue': targetValue,
    if (customizedScalingMetricSpecification != null)
      'CustomizedScalingMetricSpecification':
          customizedScalingMetricSpecification,
    if (disableScaleIn != null) 'DisableScaleIn': disableScaleIn,
    if (estimatedInstanceWarmup != null)
      'EstimatedInstanceWarmup': estimatedInstanceWarmup,
    if (predefinedScalingMetricSpecification != null)
      'PredefinedScalingMetricSpecification':
          predefinedScalingMetricSpecification,
    if (scaleInCooldown != null) 'ScaleInCooldown': scaleInCooldown,
    if (scaleOutCooldown != null) 'ScaleOutCooldown': scaleOutCooldown,
  };
}