toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case OrganizationNodeType.organization:
      return 'ORGANIZATION';
    case OrganizationNodeType.organizationalUnit:
      return 'ORGANIZATIONAL_UNIT';
    case OrganizationNodeType.account:
      return 'ACCOUNT';
  }
}