DayPilot.Event(data);
This object will be stored unchanged as DayPilot.Event.data property.
var e = new DayPilot.Event({ start:new DayPilot.Date(), end:(new DayPilot.Date()).addHours(5), id: DayPilot.guid(), text: "New Event", resource:'E' });