@classmethod
def inflate(cls, rel):
    """
        Inflate a neo4j_driver relationship object to a neomodel object
        :param rel:
        :return: StructuredRel
        """
    props = {}
    for key, prop in cls.defined_properties(aliases=False, rels=False).items():
        if key in rel:
            props[key] = prop.inflate(rel[key], obj=rel)
        elif prop.has_default:
            props[key] = prop.default_value()
        else:
            props[key] = None
    srel = cls(**props)
    srel._start_node_id = rel.start
    srel._end_node_id = rel.end
    srel.id = rel.id
    return srel
