toReservedElasticsearchInstancePaymentOption method

ReservedElasticsearchInstancePaymentOption toReservedElasticsearchInstancePaymentOption()

Implementation

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