def __init__(self, json, Api):
self.json = json<EOL>self.Api = Api<EOL>self.type = json["<STR_LIT:type>"]<EOL>self.content = json["<STR_LIT:content>"]<EOL>self.timestamp = json["<STR_LIT>"]<EOL>self.id = json["<STR_LIT>"]<EOL>if "<STR_LIT>" in json:<EOL><INDENT>self.mxid = json["<STR_LIT>"]<EOL><DEDENT>else:<EOL><INDENT>self.mxid = json["<STR_LIT>"]<EOL><DEDENT>
Instantiates Event instance.

        Args:
            json(dict): Event json from homeserver.
            Api(func): Creates api for calling homeserver.