

@classmethod
def to_dict(cls, proParam):
    new_dic = {
        
    }
    for k in proParam.keys():
        item = proParam[k]
        if isinstance(item, ProtocolParameters):
            new_dic[k] = ProtocolParameters.to_dict(item)
        elif isinstance(item, dict):
            new_dic[k] = ProtocolParameters.to_dict(ProtocolParameters(proParam[k]))
        else:
            new_dic[k] = proParam[k]
    return new_dic

dataset/ETHPy150Open victor-gil-sepulveda/pyProCT/pyproct/driver/parameters.py ProtocolParameters.to_dict/original