toFormat method

Format toFormat()

Implementation

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