toHashAlgorithm method
Implementation
HashAlgorithm toHashAlgorithm() {
switch (this) {
case 'SHA1':
return HashAlgorithm.sha1;
case 'SHA256':
return HashAlgorithm.sha256;
}
throw Exception('$this is not known in enum HashAlgorithm');
}