fromString method

BackupAlgorithm? fromString(
  1. String val
)

Implementation

BackupAlgorithm? fromString(String val) {
  final override = {
    'm.megolm_backup.v1.curve25519-aes-sha2':
        BackupAlgorithm.mMegolmBackupV1Curve25519AesSha2,
  }[val];
// ignore: unnecessary_this
  return this.contains(override) ? override : null;
}