def METHOD_NAME(self) -> dict:
    """
    Convert this UdfData object into a dictionary that can be converted into
    a valid JSON representation
    """
    return {
        "datacubes": [x.METHOD_NAME() for x in self.datacube_list] \
            if self.datacube_list else None,
        "feature_collection_list": [x.METHOD_NAME() for x in self.feature_collection_list] \
            if self.feature_collection_list else None,
        "structured_data_list": [x.METHOD_NAME() for x in self.structured_data_list] \
            if self.structured_data_list else None,
        "proj": self.proj,
        "user_context": self.user_context,
    }