'Returns the JSON representation of the event.'

def dump(self):

    data = {'event_topic': self.topic, 'event_type': self.event_type, 'event_ts': self.timestamp, 'uuid': self.uuid, 'payload': self.payload}
    if self.obfuscated_data:
        data['payload']['obfuscated_data'] = self.obfuscated_data
    return json.dumps(data)
