AutoScalingSettingsDescription.fromJson constructor
AutoScalingSettingsDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AutoScalingSettingsDescription.fromJson(Map<String, dynamic> json) {
return AutoScalingSettingsDescription(
autoScalingDisabled: json['AutoScalingDisabled'] as bool?,
autoScalingRoleArn: json['AutoScalingRoleArn'] as String?,
maximumUnits: json['MaximumUnits'] as int?,
minimumUnits: json['MinimumUnits'] as int?,
scalingPolicies: (json['ScalingPolicies'] as List?)
?.whereNotNull()
.map((e) =>
AutoScalingPolicyDescription.fromJson(e as Map<String, dynamic>))
.toList(),
);
}