toChallengeName method
Implementation
ChallengeName toChallengeName() {
switch (this) {
case 'Password':
return ChallengeName.password;
case 'Mfa':
return ChallengeName.mfa;
}
throw Exception('$this is not known in enum ChallengeName');
}