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

        if not isinstance(obj, dict):
            return DockerRunLogDockerLoad.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 DockerRunLogDockerLoad) in the input: " + str(obj))

        _obj = DockerRunLogDockerLoad.parse_obj({
            "cpu": obj.get("cpu"),
            "mem": obj.get("mem")
        })
        return _obj
Create an instance of DockerRunLogDockerLoad from a dict
lightly/openapi_generated/swagger_client/models/docker_run_log_docker_load.py