Used by Variable/Connection.

https://github.com/apache/airflow/blob/894741e311ffd642e036b80d3b1b5d53c3747cad/airflow/secrets/metastore.py#L32

"""BaseSerialization provides utils for serialization."""
    
    _primitive_types = (int, bool, float, str)
    
    
    _datetime_types = (datetime.datetime,)
    
    _excluded_types = (logging.Logger, Connection, type, property)
    _json_schema: Validator | None = None
    
    
    
    _load_operator_extra_links = True
    _CONSTRUCTOR_PARAMS: dict[str, Parameter] = {}
    SERIALIZER_VERSION = 1
    @classmethod
    def to_json(cls, var: DAG | BaseOperator | dict | list | set | tuple) -> str: