toValue method

String toValue()

Implementation

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