SavingsPlansPurchaseRecommendationDetail.fromJson constructor

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

Implementation

factory SavingsPlansPurchaseRecommendationDetail.fromJson(
    Map<String, dynamic> json) {
  return SavingsPlansPurchaseRecommendationDetail(
    accountId: json['AccountId'] as String?,
    currencyCode: json['CurrencyCode'] as String?,
    currentAverageHourlyOnDemandSpend:
        json['CurrentAverageHourlyOnDemandSpend'] as String?,
    currentMaximumHourlyOnDemandSpend:
        json['CurrentMaximumHourlyOnDemandSpend'] as String?,
    currentMinimumHourlyOnDemandSpend:
        json['CurrentMinimumHourlyOnDemandSpend'] as String?,
    estimatedAverageUtilization:
        json['EstimatedAverageUtilization'] as String?,
    estimatedMonthlySavingsAmount:
        json['EstimatedMonthlySavingsAmount'] as String?,
    estimatedOnDemandCost: json['EstimatedOnDemandCost'] as String?,
    estimatedOnDemandCostWithCurrentCommitment:
        json['EstimatedOnDemandCostWithCurrentCommitment'] as String?,
    estimatedROI: json['EstimatedROI'] as String?,
    estimatedSPCost: json['EstimatedSPCost'] as String?,
    estimatedSavingsAmount: json['EstimatedSavingsAmount'] as String?,
    estimatedSavingsPercentage: json['EstimatedSavingsPercentage'] as String?,
    hourlyCommitmentToPurchase: json['HourlyCommitmentToPurchase'] as String?,
    savingsPlansDetails: json['SavingsPlansDetails'] != null
        ? SavingsPlansDetails.fromJson(
            json['SavingsPlansDetails'] as Map<String, dynamic>)
        : null,
    upfrontCost: json['UpfrontCost'] as String?,
  );
}