toFileFormat method

FileFormat toFileFormat()

Implementation

FileFormat toFileFormat() {
  switch (this) {
    case 'CSV':
      return FileFormat.csv;
    case 'TSV':
      return FileFormat.tsv;
    case 'CLF':
      return FileFormat.clf;
    case 'ELF':
      return FileFormat.elf;
    case 'XLSX':
      return FileFormat.xlsx;
    case 'JSON':
      return FileFormat.json;
  }
  throw Exception('$this is not known in enum FileFormat');
}