[docs]classSerializable(ABC):""" Base class for the API schema objects which we later need convert to dict. """
[docs]@abstractmethoddefto_api_schema(self)->BaseModel:""" Convert class data into the corresponding API schema class. :return: API schema class """pass