RecommendedOptionProjectedMetric.fromJson constructor
RecommendedOptionProjectedMetric.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RecommendedOptionProjectedMetric.fromJson(Map<String, dynamic> json) {
return RecommendedOptionProjectedMetric(
projectedMetrics: (json['projectedMetrics'] as List?)
?.whereNotNull()
.map((e) => ProjectedMetric.fromJson(e as Map<String, dynamic>))
.toList(),
rank: json['rank'] as int?,
recommendedInstanceType: json['recommendedInstanceType'] as String?,
);
}