toJSON(obj) {
        var json = BaseSerializer.prototype.toJSON.call(this, obj);
        Object.assign(json, obj);
        return json;
    }
OptionsSerializer
@author tengge / https://github.com/tengge1