json.putOpt(PROP_NEW_VALUE, (getConversionService().toJson(((Change)representation).getNewValue())));
return json;
}
public Object fromJson(JSONObject json) {
Change change = new Change();
change.setAttribute(getString(json, PROP_ATTRIBUTE));
change.setType(getString(json, PROP_TYPE));
change.setPreviousValue(getObject(json, PROP_PREVIOUS_VALUE, Change.class));
change.setNewValue(getObject(json, PROP_NEW_VALUE, Change.class));
return change;
}