def to_json(self):
    return {'__type__': object_fullname(self),
            'node1': get_json_attr(self.node1),
            'port1': get_json_attr(self.port1),
            'node2': get_json_attr(self.node2),
            'port2': get_json_attr(self.port2)}
Serialize to JSON dict
dataset/ETHPy150Open ucb-sts/sts/sts/entities/base.py/BiDirectionalLinkAbstractClass.to_json