ReservationPurchaseRecommendationDetail.fromJson constructor

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

Implementation

factory ReservationPurchaseRecommendationDetail.fromJson(
    Map<String, dynamic> json) {
  return ReservationPurchaseRecommendationDetail(
    accountId: json['AccountId'] as String?,
    averageNormalizedUnitsUsedPerHour:
        json['AverageNormalizedUnitsUsedPerHour'] as String?,
    averageNumberOfInstancesUsedPerHour:
        json['AverageNumberOfInstancesUsedPerHour'] as String?,
    averageUtilization: json['AverageUtilization'] as String?,
    currencyCode: json['CurrencyCode'] as String?,
    estimatedBreakEvenInMonths: json['EstimatedBreakEvenInMonths'] as String?,
    estimatedMonthlyOnDemandCost:
        json['EstimatedMonthlyOnDemandCost'] as String?,
    estimatedMonthlySavingsAmount:
        json['EstimatedMonthlySavingsAmount'] as String?,
    estimatedMonthlySavingsPercentage:
        json['EstimatedMonthlySavingsPercentage'] as String?,
    estimatedReservationCostForLookbackPeriod:
        json['EstimatedReservationCostForLookbackPeriod'] as String?,
    instanceDetails: json['InstanceDetails'] != null
        ? InstanceDetails.fromJson(
            json['InstanceDetails'] as Map<String, dynamic>)
        : null,
    maximumNormalizedUnitsUsedPerHour:
        json['MaximumNormalizedUnitsUsedPerHour'] as String?,
    maximumNumberOfInstancesUsedPerHour:
        json['MaximumNumberOfInstancesUsedPerHour'] as String?,
    minimumNormalizedUnitsUsedPerHour:
        json['MinimumNormalizedUnitsUsedPerHour'] as String?,
    minimumNumberOfInstancesUsedPerHour:
        json['MinimumNumberOfInstancesUsedPerHour'] as String?,
    recommendedNormalizedUnitsToPurchase:
        json['RecommendedNormalizedUnitsToPurchase'] as String?,
    recommendedNumberOfInstancesToPurchase:
        json['RecommendedNumberOfInstancesToPurchase'] as String?,
    recurringStandardMonthlyCost:
        json['RecurringStandardMonthlyCost'] as String?,
    upfrontCost: json['UpfrontCost'] as String?,
  );
}