AutoScalingGroupRecommendationOption.fromJson constructor
AutoScalingGroupRecommendationOption.fromJson(
- Map<String, dynamic> json
)
Implementation
factory AutoScalingGroupRecommendationOption.fromJson(
Map<String, dynamic> json) {
return AutoScalingGroupRecommendationOption(
configuration: json['configuration'] != null
? AutoScalingGroupConfiguration.fromJson(
json['configuration'] as Map<String, dynamic>)
: null,
performanceRisk: json['performanceRisk'] as double?,
projectedUtilizationMetrics:
(json['projectedUtilizationMetrics'] as List?)
?.whereNotNull()
.map((e) => UtilizationMetric.fromJson(e as Map<String, dynamic>))
.toList(),
rank: json['rank'] as int?,
);
}