toDocumentClassifierMode method
Implementation
DocumentClassifierMode toDocumentClassifierMode() {
switch (this) {
case 'MULTI_CLASS':
return DocumentClassifierMode.multiClass;
case 'MULTI_LABEL':
return DocumentClassifierMode.multiLabel;
}
throw Exception('$this is not known in enum DocumentClassifierMode');
}