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