toKeyType method

KeyType toKeyType()

Implementation

KeyType toKeyType() {
  switch (this) {
    case 'HASH':
      return KeyType.hash;
    case 'RANGE':
      return KeyType.range;
  }
  throw Exception('$this is not known in enum KeyType');
}