toJson method
Implementation
Map<String, dynamic> toJson() {
final adjustmentType = this.adjustmentType;
final cooldown = this.cooldown;
final metricAggregationType = this.metricAggregationType;
final minAdjustmentMagnitude = this.minAdjustmentMagnitude;
final stepAdjustments = this.stepAdjustments;
return {
if (adjustmentType != null) 'AdjustmentType': adjustmentType.toValue(),
if (cooldown != null) 'Cooldown': cooldown,
if (metricAggregationType != null)
'MetricAggregationType': metricAggregationType.toValue(),
if (minAdjustmentMagnitude != null)
'MinAdjustmentMagnitude': minAdjustmentMagnitude,
if (stepAdjustments != null) 'StepAdjustments': stepAdjustments,
};
}