mobxjs / serializr

Serialize and deserialize complex object graphs to and from JSON and Javascript classes
MIT License
766 stars 52 forks source link

Deserializing into an already constructed object #80

Closed j closed 6 years ago

j commented 6 years ago

Is it possible to deserialize to an already created object? I.E.

const user = new User();
user.firstName = 'John';

// Is this possible?
deserialize(user, { lastName: 'Doe' });
j commented 6 years ago

Dirp, found "update".