toEntityRecognizerDataFormat method

EntityRecognizerDataFormat toEntityRecognizerDataFormat()

Implementation

EntityRecognizerDataFormat toEntityRecognizerDataFormat() {
  switch (this) {
    case 'COMPREHEND_CSV':
      return EntityRecognizerDataFormat.comprehendCsv;
    case 'AUGMENTED_MANIFEST':
      return EntityRecognizerDataFormat.augmentedManifest;
  }
  throw Exception('$this is not known in enum EntityRecognizerDataFormat');
}