class TrackingEvent {

    public JsonObject toJsonObject() {
        return Json.createObjectBuilder()
                .add("uuid", uuid)
                .add("timestamp", timestamp)
                .add("sourceType", sourceType)
                .add("type", type.getName())
                .add("data", data)
                .build();
    }

    public  TrackingEvent(String uuid, Long timestamp, TrackingEventType type, JsonStructure data);

}