toSalesforceKnowledgeArticleState method
Implementation
SalesforceKnowledgeArticleState toSalesforceKnowledgeArticleState() {
switch (this) {
case 'DRAFT':
return SalesforceKnowledgeArticleState.draft;
case 'PUBLISHED':
return SalesforceKnowledgeArticleState.published;
case 'ARCHIVED':
return SalesforceKnowledgeArticleState.archived;
}
throw Exception(
'$this is not known in enum SalesforceKnowledgeArticleState');
}