toEncryptionAlgorithm method
Implementation
EncryptionAlgorithm toEncryptionAlgorithm() {
switch (this) {
case 'RSA':
return EncryptionAlgorithm.rsa;
case 'ECDSA':
return EncryptionAlgorithm.ecdsa;
}
throw Exception('$this is not known in enum EncryptionAlgorithm');
}