SavingsPlansUtilizationAggregates.fromJson constructor

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

Implementation

factory SavingsPlansUtilizationAggregates.fromJson(
    Map<String, dynamic> json) {
  return SavingsPlansUtilizationAggregates(
    utilization: SavingsPlansUtilization.fromJson(
        json['Utilization'] as Map<String, dynamic>),
    amortizedCommitment: json['AmortizedCommitment'] != null
        ? SavingsPlansAmortizedCommitment.fromJson(
            json['AmortizedCommitment'] as Map<String, dynamic>)
        : null,
    savings: json['Savings'] != null
        ? SavingsPlansSavings.fromJson(
            json['Savings'] as Map<String, dynamic>)
        : null,
  );
}