@classmethod<EOL><INDENT>def fromjson(cls, json_string: str) -> '<STR_LIT>':<DEDENT>
obj = json.loads(json_string)<EOL>return cls(<EOL>UUID(obj['<STR_LIT>']),<EOL>obj['<STR_LIT>'],<EOL>obj['<STR_LIT>'],<EOL>obj['<STR_LIT>'],<EOL>obj['<STR_LIT>']<EOL>)<EOL>
Create a new Event from a from a psycopg2-pgevent event JSON.

        Parameters
        ----------
        json_string: str
            Valid psycopg2-pgevent event JSON.

        Returns
        -------
        Event
            Event created from JSON deserialization.