toKeyType method
Implementation
KeyType toKeyType() {
switch (this) {
case 'speke':
return KeyType.speke;
case 'static-key':
return KeyType.staticKey;
}
throw Exception('$this is not known in enum KeyType');
}
KeyType toKeyType() {
switch (this) {
case 'speke':
return KeyType.speke;
case 'static-key':
return KeyType.staticKey;
}
throw Exception('$this is not known in enum KeyType');
}