DS.Transform#serialize()

serialize (deserialized, options)

Defined in addon/transform.js:70

When given a deserialized value from a record attribute this method must return the serialized value.

Example

serialize: function(deserialized, options) {
  return Ember.isEmpty(deserialized) ? null : Number(deserialized);
}

Parameters:

deserialized
The deserialized value
options
hash of options passed to `DS.attr`

Returns:

The serialized value
doc_EmberJs
2016-11-30 16:51:01
Comments
Leave a Comment

Please login to continue.