def to_dict(self, by_alias: bool = False):
        """Returns the dictionary representation of the model"""
        _dict = self.dict(by_alias=by_alias,
                          exclude={
                          },
                          exclude_none=True)
        # set to None if enable_upload_for_tasks (nullable) is None
        # and __fields_set__ contains the field
        if self.enable_upload_for_tasks is None and "enable_upload_for_tasks" in self.__fields_set__:
            _dict['enableUploadForTasks' if by_alias else 'enable_upload_for_tasks'] = None

        return _dict
Returns the dictionary representation of the model
lightly/openapi_generated/swagger_client/models/docker_worker_config_v4_docker_crops.py