def __init__(self, json, Api):
self.json = json<EOL>self._index = <NUM_LIT:0><EOL>self.Api = Api<EOL>
Instantiates EventStream instance.

        Args:
            json(list): List from deserializing txn from homeserver.
            Api(func): Generates http api when passed identity=mxid.