toDecryptionMode method

DecryptionMode toDecryptionMode()

Implementation

DecryptionMode toDecryptionMode() {
  switch (this) {
    case 'AES_CTR':
      return DecryptionMode.aesCtr;
    case 'AES_CBC':
      return DecryptionMode.aesCbc;
    case 'AES_GCM':
      return DecryptionMode.aesGcm;
  }
  throw Exception('$this is not known in enum DecryptionMode');
}