InstanceRecommendationOption.fromJson constructor
InstanceRecommendationOption.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InstanceRecommendationOption.fromJson(Map<String, dynamic> json) {
return InstanceRecommendationOption(
instanceType: json['instanceType'] as String?,
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?,
);
}