def element_to_objects(payload: Dict) -> List:
entities = []<EOL>cls = MAPPINGS.get(payload.get('<STR_LIT:type>'))<EOL>if not cls:<EOL><INDENT>return []<EOL><DEDENT>transformed = transform_attributes(payload, cls)<EOL>entity = cls(**transformed)<EOL>if hasattr(entity, "<STR_LIT>"):<EOL><INDENT>entity.post_receive()<EOL><DEDENT>entities.append(entity)<EOL>return entities<EOL>
Transform an Element to a list of entities recursively.