# coding: utf-8

"""
    Docling Serve

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

    The version of the OpenAPI document: 
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class InputFormat(str, Enum):
    """
    A document format supported by document backend parsers.
    """

    """
    allowed enum values
    """
    DOCX = 'docx'
    PPTX = 'pptx'
    HTML = 'html'
    IMAGE = 'image'
    PDF = 'pdf'
    ASCIIDOC = 'asciidoc'
    MD = 'md'
    CSV = 'csv'
    XLSX = 'xlsx'
    XML_USPTO = 'xml_uspto'
    XML_JATS = 'xml_jats'
    XML_XBRL = 'xml_xbrl'
    METS_GBS = 'mets_gbs'
    JSON_DOCLING = 'json_docling'
    AUDIO = 'audio'
    VTT = 'vtt'
    LATEX = 'latex'

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of InputFormat from a JSON string"""
        return cls(json.loads(json_str))


