toReservedInstancePaymentOption method

ReservedInstancePaymentOption toReservedInstancePaymentOption()

Implementation

ReservedInstancePaymentOption toReservedInstancePaymentOption() {
  switch (this) {
    case 'ALL_UPFRONT':
      return ReservedInstancePaymentOption.allUpfront;
    case 'PARTIAL_UPFRONT':
      return ReservedInstancePaymentOption.partialUpfront;
    case 'NO_UPFRONT':
      return ReservedInstancePaymentOption.noUpfront;
  }
  throw Exception('$this is not known in enum ReservedInstancePaymentOption');
}