model/new: add deserialization to models+attributes.