qcodes/dataset/descriptions/versioning/serialization.py
def from_dict_to_current(dct: RunDescriberDicts) -> current.RunDescriber:
    """
    Convert a dict into a RunDescriber of the current version
    """
    dct_version = dct['version']
    if dct_version == 0:
        return current.RunDescriber._from_dict(cast(RunDescriberV0Dict, dct))
    elif dct_version == 1:
        return current.RunDescriber._from_dict(cast(RunDescriberV1Dict, dct))
    elif dct_version == 2:
        return current.RunDescriber._from_dict(cast(RunDescriberV2Dict, dct))
    elif dct_version >= 3:
        return current.RunDescriber._from_dict(cast(RunDescriberV3Dict, dct))
    else:
        raise RuntimeError(f"Unknown version of run describer dictionary, can't deserialize. The dictionary is {dct!r}")

    Convert a dict into a RunDescriber of the current version
    
Convert a dict into a RunDescriber of the current version
Convert a dict into a RunDescriber of the current version
def from_dict_to_current(dct: RunDescriberDicts) -> current.RunDescriber:
    dct_version = dct['version']
    if dct_version == 0:
        return current.RunDescriber._from_dict(cast(RunDescriberV0Dict, dct))
    elif dct_version == 1:
        return current.RunDescriber._from_dict(cast(RunDescriberV1Dict, dct))
    elif dct_version == 2:
        return current.RunDescriber._from_dict(cast(RunDescriberV2Dict, dct))
    elif dct_version >= 3:
        return current.RunDescriber._from_dict(cast(RunDescriberV3Dict, dct))
    else:
        raise RuntimeError(f"Unknown version of run describer dictionary, can't deserialize. The dictionary is {dct!r}")
def from_dict_to_current ( dct : RunDescriberDicts ) -> current . RunDescriber : dct_version = dct [ 'version' ] if dct_version == 0 : return current . RunDescriber . _from_dict ( cast ( RunDescriberV0Dict , dct ) ) elif dct_version == 1 : return current . RunDescriber . _from_dict ( cast ( RunDescriberV1Dict , dct ) ) elif dct_version == 2 : return current . RunDescriber . _from_dict ( cast ( RunDescriberV2Dict , dct ) ) elif dct_version >= 3 : return current . RunDescriber . _from_dict ( cast ( RunDescriberV3Dict , dct ) ) else : raise RuntimeError ( f"Unknown version of run describer dictionary, can't deserialize. The dictionary is {dct!r}" )
Convert a dict into a RunDescriber of the current version
Convert a dict into a RunDescriber of the current version
"""
    Convert a dict into a RunDescriber of the current version
    """
dct
RunDescriberDicts