toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case SalesforceKnowledgeArticleState.draft:
      return 'DRAFT';
    case SalesforceKnowledgeArticleState.published:
      return 'PUBLISHED';
    case SalesforceKnowledgeArticleState.archived:
      return 'ARCHIVED';
  }
}