toConsistencyLevel method

ConsistencyLevel toConsistencyLevel()

Implementation

ConsistencyLevel toConsistencyLevel() {
  switch (this) {
    case 'SERIALIZABLE':
      return ConsistencyLevel.serializable;
    case 'EVENTUAL':
      return ConsistencyLevel.eventual;
  }
  throw Exception('$this is not known in enum ConsistencyLevel');
}