deserialize (serialized, options)
When given a serialize value from a JSON object this method must return the deserialized value for the record attribute.
Example
deserialize: function(serialized, options) { return empty(serialized) ? null : Number(serialized); }
Parameters:
- serialized
- The serialized value
- options
- hash of options passed to `DS.attr`
Returns:
- The deserialized value
Please login to continue.