import Ember from "ember";
import DS from "ember-data";

export default DS.Transform.extend({
  deserialize: function(serialized) {
    return Ember.Object.create(serialized);
  },
  serialize: function(deserialized) {
    return {
      md: deserialized.get('md')
    };
  }
});

import Ember from "ember";
import DS from "ember-data";

export default DS.Transform.extend({
  deserialize: function(serialized) {
    return Ember.Object.create(serialized);
  },
  serialize: function(deserialized) {
    return {
      md: deserialized && deserialized.get('md')
    };
  }
});

Fix bug, allow null content