toReservedNodeOfferingType method

ReservedNodeOfferingType toReservedNodeOfferingType()

Implementation

ReservedNodeOfferingType toReservedNodeOfferingType() {
  switch (this) {
    case 'Regular':
      return ReservedNodeOfferingType.regular;
    case 'Upgradable':
      return ReservedNodeOfferingType.upgradable;
  }
  throw Exception('$this is not known in enum ReservedNodeOfferingType');
}