Created
April 2, 2018 18:27
-
-
Save tomoguisuru/02d79fe7cf3e65feb5b1cca256cd2710 to your computer and use it in GitHub Desktop.
Object Transform
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Ember from 'ember'; | |
import DS from 'ember-data'; | |
export default DS.Transform.extend({ | |
deserialize: function(serialized) { | |
return Ember.isNone(serialized) ? {} : serialized; | |
}, | |
serialize: function(deserialized) { | |
return Ember.isNone(deserialized) ? {} : deserialized; | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment