GetEC2InstanceRecommendationsResponse.fromJson constructor
GetEC2InstanceRecommendationsResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetEC2InstanceRecommendationsResponse.fromJson(
Map<String, dynamic> json) {
return GetEC2InstanceRecommendationsResponse(
errors: (json['errors'] as List?)
?.whereNotNull()
.map(
(e) => GetRecommendationError.fromJson(e as Map<String, dynamic>))
.toList(),
instanceRecommendations: (json['instanceRecommendations'] as List?)
?.whereNotNull()
.map(
(e) => InstanceRecommendation.fromJson(e as Map<String, dynamic>))
.toList(),
nextToken: json['nextToken'] as String?,
);
}