toEncryptionMethod method

EncryptionMethod toEncryptionMethod()

Implementation

EncryptionMethod toEncryptionMethod() {
  switch (this) {
    case 'AES_128':
      return EncryptionMethod.aes_128;
    case 'SAMPLE_AES':
      return EncryptionMethod.sampleAes;
  }
  throw Exception('$this is not known in enum EncryptionMethod');
}