toIdentityType method

IdentityType toIdentityType()

Implementation

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