toIdentityType method
Implementation
IdentityType toIdentityType() {
switch (this) {
case 'EmailAddress':
return IdentityType.emailAddress;
case 'Domain':
return IdentityType.domain;
}
throw Exception('$this is not known in enum IdentityType');
}