def from_dict(cls, obj: dict) -> DockerRunLogEntryDataBase:
        """Create an instance of DockerRunLogEntryDataBase from a dict"""
        if obj is None:
            return None

        if not isinstance(obj, dict):
            return DockerRunLogEntryDataBase.parse_obj(obj)

        # raise errors for additional fields in the input
        for _key in obj.keys():
            if _key not in cls.__properties:
                raise ValueError("Error due to additional fields (not defined in DockerRunLogEntryDataBase) in the input: " + str(obj))

        _obj = DockerRunLogEntryDataBase.parse_obj({
            "ts": obj.get("ts"),
            "level": obj.get("level"),
            "group": obj.get("group"),
            "origin": obj.get("origin"),
            "msg": obj.get("msg"),
            "state": obj.get("state"),
            "load": DockerRunLogDockerLoad.from_dict(obj.get("load")) if obj.get("load") is not None else None
        })
        return _obj
Create an instance of DockerRunLogEntryDataBase from a dict
lightly/openapi_generated/swagger_client/models/docker_run_log_entry_data_base.py