toAlgorithm method

Algorithm toAlgorithm()

Implementation

Algorithm toAlgorithm() {
  switch (this) {
    case 'aes128':
      return Algorithm.aes128;
    case 'aes192':
      return Algorithm.aes192;
    case 'aes256':
      return Algorithm.aes256;
  }
  throw Exception('$this is not known in enum Algorithm');
}