toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case IdentityType.emailAddress:
      return 'EmailAddress';
    case IdentityType.domain:
      return 'Domain';
  }
}