toVocabularyState method
Implementation
VocabularyState toVocabularyState() {
switch (this) {
case 'PENDING':
return VocabularyState.pending;
case 'READY':
return VocabularyState.ready;
case 'FAILED':
return VocabularyState.failed;
}
throw Exception('$this is not known in enum VocabularyState');
}