# ExplicitEncryptionType.fromNamespace constructor

ExplicitEncryptionType.fromNamespace(

1. String namespace

)

## Implementation

    factory ExplicitEncryptionType.fromNamespace(String namespace) {
      switch (namespace) {
        case emeOtr:
          return ExplicitEncryptionType.otr;
        case emeLegacyOpenPGP:
          return ExplicitEncryptionType.legacyOpenPGP;
        case emeOpenPGP:
          return ExplicitEncryptionType.openPGP;
        case emeOmemo:
          return ExplicitEncryptionType.omemo;
        case emeOmemo1:
          return ExplicitEncryptionType.omemo1;
        case emeOmemo2:
          return ExplicitEncryptionType.omemo2;
        default:
          return ExplicitEncryptionType.unknown;
      }
    }