GetSavingsPlansPurchaseRecommendationResponse.fromJson constructor

GetSavingsPlansPurchaseRecommendationResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory GetSavingsPlansPurchaseRecommendationResponse.fromJson(
    Map<String, dynamic> json) {
  return GetSavingsPlansPurchaseRecommendationResponse(
    metadata: json['Metadata'] != null
        ? SavingsPlansPurchaseRecommendationMetadata.fromJson(
            json['Metadata'] as Map<String, dynamic>)
        : null,
    nextPageToken: json['NextPageToken'] as String?,
    savingsPlansPurchaseRecommendation:
        json['SavingsPlansPurchaseRecommendation'] != null
            ? SavingsPlansPurchaseRecommendation.fromJson(
                json['SavingsPlansPurchaseRecommendation']
                    as Map<String, dynamic>)
            : null,
  );
}