toBudgetType method
Implementation
BudgetType toBudgetType() {
switch (this) {
case 'USAGE':
return BudgetType.usage;
case 'COST':
return BudgetType.cost;
case 'RI_UTILIZATION':
return BudgetType.riUtilization;
case 'RI_COVERAGE':
return BudgetType.riCoverage;
case 'SAVINGS_PLANS_UTILIZATION':
return BudgetType.savingsPlansUtilization;
case 'SAVINGS_PLANS_COVERAGE':
return BudgetType.savingsPlansCoverage;
}
throw Exception('$this is not known in enum BudgetType');
}