AutoScalingPolicyDescription.fromJson constructor
AutoScalingPolicyDescription.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AutoScalingPolicyDescription.fromJson(Map<String, dynamic> json) {
return AutoScalingPolicyDescription(
constraints: json['Constraints'] != null
? ScalingConstraints.fromJson(
json['Constraints'] as Map<String, dynamic>)
: null,
rules: (json['Rules'] as List?)
?.whereNotNull()
.map((e) => ScalingRule.fromJson(e as Map<String, dynamic>))
.toList(),
status: json['Status'] != null
? AutoScalingPolicyStatus.fromJson(
json['Status'] as Map<String, dynamic>)
: null,
);
}