def METHOD_NAME(self, value, attr, obj, **kwargs):
    """FileRefField does not support serialize.
    This function is overwrite because we need job can be dumped inside schedule.
    """
    from azure.ai.ml.entities._builders import BaseNode
    if isinstance(value, BaseNode):
        # Dump as Job to avoid missing field.
        value = value._to_job()
    return value._to_dict()