rawValue function
Implementation
String rawValue({OTPAlgorithm algorithm}) {
switch (algorithm) {
case OTPAlgorithm.SHA1:
return 'SHA1';
case OTPAlgorithm.SHA256:
return 'SHA256';
case OTPAlgorithm.SHA384:
return 'SHA384';
case OTPAlgorithm.SHA512:
return 'SHA512';
default:
return null;
}
}