toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final scalingAdjustment = this.scalingAdjustment;
  final metricIntervalLowerBound = this.metricIntervalLowerBound;
  final metricIntervalUpperBound = this.metricIntervalUpperBound;
  return {
    'ScalingAdjustment': scalingAdjustment,
    if (metricIntervalLowerBound != null)
      'MetricIntervalLowerBound': metricIntervalLowerBound,
    if (metricIntervalUpperBound != null)
      'MetricIntervalUpperBound': metricIntervalUpperBound,
  };
}