Flatten data parameter into event object