Hi Martin,
In the JavaScript version, it's not possible to change the mapping.
But you can transform your object easily like this:
const myEvents = [ /* ... */ ];
const events = myEvents.map(e => ({
...e, // copy the original object
resource: e.resourceStudio // override a selected property
// ...
}));
dp.update({events});