mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
10 lines
263 B
JavaScript
10 lines
263 B
JavaScript
|
import Transform from 'ember-data/transform';
|
||
|
|
||
|
export default Transform.extend({
|
||
|
deserialize(serialised) {
|
||
|
return JSON.parse(serialised);
|
||
|
},
|
||
|
serialize(deserialised) {
|
||
|
return deserialised ? JSON.stringify(deserialised) : null;
|
||
|
}
|
||
|
});
|