toFaqFileFormat method

FaqFileFormat toFaqFileFormat()

Implementation

FaqFileFormat toFaqFileFormat() {
  switch (this) {
    case 'CSV':
      return FaqFileFormat.csv;
    case 'CSV_WITH_HEADER':
      return FaqFileFormat.csvWithHeader;
    case 'JSON':
      return FaqFileFormat.json;
  }
  throw Exception('$this is not known in enum FaqFileFormat');
}