toSavingsPlanOfferingFilterAttribute method

SavingsPlanOfferingFilterAttribute toSavingsPlanOfferingFilterAttribute()

Implementation

SavingsPlanOfferingFilterAttribute toSavingsPlanOfferingFilterAttribute() {
  switch (this) {
    case 'region':
      return SavingsPlanOfferingFilterAttribute.region;
    case 'instanceFamily':
      return SavingsPlanOfferingFilterAttribute.instanceFamily;
  }
  throw Exception(
      '$this is not known in enum SavingsPlanOfferingFilterAttribute');
}