toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case IdentityType.emailAddress:
      return 'EMAIL_ADDRESS';
    case IdentityType.domain:
      return 'DOMAIN';
    case IdentityType.managedDomain:
      return 'MANAGED_DOMAIN';
  }
}