toUsernameAttributeType method
Implementation
UsernameAttributeType toUsernameAttributeType() {
switch (this) {
case 'phone_number':
return UsernameAttributeType.phoneNumber;
case 'email':
return UsernameAttributeType.email;
}
throw Exception('$this is not known in enum UsernameAttributeType');
}