def to_json(self):
    return {'__type__': object_fullname(self),
            'start_node': get_json_attr(self.start_node),
            'start_port': get_json_attr(self.start_port),
            'end_node': get_json_attr(self.end_node),
            'end_port': get_json_attr(self.end_port)}
Serialize to JSON dict
dataset/ETHPy150Open ucb-sts/sts/sts/entities/base.py/DirectedLinkAbstractClass.to_json