DS.JSONSerializer#applyTransforms()

applyTransforms (typeClass, data) Objectprivate

Defined in addon/serializers/json.js:175

Given a subclass of DS.Model and a JSON object this method will iterate through each attribute of the DS.Model and invoke the DS.Transform#deserialize method on the matching property of the JSON object. This method is typically called after the serializer's normalize method.

Parameters:

typeClass DS.Model
data Object
The data to transform

Returns:

Object
data The transformed data object
doc_EmberJs
2016-11-30 16:49:47
Comments
Leave a Comment

Please login to continue.