toInputMode method

InputMode toInputMode()

Implementation

InputMode toInputMode() {
  switch (this) {
    case 'Pipe':
      return InputMode.pipe;
    case 'File':
      return InputMode.file;
  }
  throw Exception('$this is not known in enum InputMode');
}