toDocumentFormat method

DocumentFormat toDocumentFormat()

Implementation

DocumentFormat toDocumentFormat() {
  switch (this) {
    case 'YAML':
      return DocumentFormat.yaml;
    case 'JSON':
      return DocumentFormat.json;
    case 'TEXT':
      return DocumentFormat.text;
  }
  throw Exception('$this is not known in enum DocumentFormat');
}