StepScalingPolicyConfiguration.fromJson constructor
StepScalingPolicyConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory StepScalingPolicyConfiguration.fromJson(Map<String, dynamic> json) {
return StepScalingPolicyConfiguration(
adjustmentType: (json['AdjustmentType'] as String?)?.toAdjustmentType(),
cooldown: json['Cooldown'] as int?,
metricAggregationType:
(json['MetricAggregationType'] as String?)?.toMetricAggregationType(),
minAdjustmentMagnitude: json['MinAdjustmentMagnitude'] as int?,
stepAdjustments: (json['StepAdjustments'] as List?)
?.whereNotNull()
.map((e) => StepAdjustment.fromJson(e as Map<String, dynamic>))
.toList(),
);
}