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

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

        _obj = DockerWorkerConfigV3LightlyModel.parse_obj({
            "name": obj.get("name"),
            "out_dim": obj.get("outDim"),
            "num_ftrs": obj.get("numFtrs"),
            "width": obj.get("width")
        })
        return _obj
Create an instance of DockerWorkerConfigV3LightlyModel from a dict
lightly/openapi_generated/swagger_client/models/docker_worker_config_v3_lightly_model.py