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