toInputFormat method
Implementation
InputFormat toInputFormat() {
switch (this) {
case 'ONE_DOC_PER_FILE':
return InputFormat.oneDocPerFile;
case 'ONE_DOC_PER_LINE':
return InputFormat.oneDocPerLine;
}
throw Exception('$this is not known in enum InputFormat');
}