def METHOD_NAME(self):
    obj = {
        "userId": self.user,
        "status": self.status.value,
        "portIn": [port.getDict() for port in self.portIn],
        "portOut": [port.getDict() for port in self.portOut],
        "researchname": self.researchname,
        "timeCreatedS": self.timeCreatedS
    }
    try:
        obj["researchId"] = self.researchId
        obj["researchIndex"] = self.researchIndex
    except:
        pass
    return obj