derivationStrategyFromString function

DerivationStrategy derivationStrategyFromString(
  1. String strategy
)

Maps a serialized DerivationStrategy string into the actual enum value

Implementation

DerivationStrategy derivationStrategyFromString(String strategy) {
  switch (strategy) {
    case 'Pbkdf2Hmac':
      return DerivationStrategy.pbkdf2Hmac;
  }
  throw 'Strategy "$strategy" not registered';
}