toReturnConsumedCapacity method

ReturnConsumedCapacity toReturnConsumedCapacity()

Implementation

ReturnConsumedCapacity toReturnConsumedCapacity() {
  switch (this) {
    case 'INDEXES':
      return ReturnConsumedCapacity.indexes;
    case 'TOTAL':
      return ReturnConsumedCapacity.total;
    case 'NONE':
      return ReturnConsumedCapacity.none;
  }
  throw Exception('$this is not known in enum ReturnConsumedCapacity');
}