Add to_json/from_json to Event