def unserialize(self, data):
<EOL>if "<STR_LIT>" not in data["<STR_LIT:object>"]:<EOL><INDENT>data["<STR_LIT:object>"]["<STR_LIT>"] = data["<STR_LIT>"]<EOL><DEDENT>for key in ["<STR_LIT:to>", "<STR_LIT>", "<STR_LIT>", "<STR_LIT>"]:<EOL><INDENT>if key not in data["<STR_LIT:object>"] and key in data:<EOL><INDENT>data["<STR_LIT:object>"][key] = data[key]<EOL><DEDENT><DEDENT>Mapper(pypump=self._pump).parse_map(self, data=data)<EOL>self._add_links(data)<EOL>return self<EOL>
From JSON -> Activity object