toKeyType method

KeyType toKeyType()

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');
}