RightsizingRecommendation.fromJson constructor
RightsizingRecommendation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory RightsizingRecommendation.fromJson(Map<String, dynamic> json) {
return RightsizingRecommendation(
accountId: json['AccountId'] as String?,
currentInstance: json['CurrentInstance'] != null
? CurrentInstance.fromJson(
json['CurrentInstance'] as Map<String, dynamic>)
: null,
modifyRecommendationDetail: json['ModifyRecommendationDetail'] != null
? ModifyRecommendationDetail.fromJson(
json['ModifyRecommendationDetail'] as Map<String, dynamic>)
: null,
rightsizingType:
(json['RightsizingType'] as String?)?.toRightsizingType(),
terminateRecommendationDetail:
json['TerminateRecommendationDetail'] != null
? TerminateRecommendationDetail.fromJson(
json['TerminateRecommendationDetail'] as Map<String, dynamic>)
: null,
);
}