toJSON(obj) {
        var json = Object3DSerializer.prototype.toJSON.call(this, obj);

        json.color = obj.color;
        json.intensity = obj.intensity;
        json.isLight = obj.isLight;
        // json.shadow = !obj.shadow ? null : new LightShadowsSerializer().toJSON(obj.shadow);

        return json;
    }
LightSerializer
@author tengge / https://github.com/tengge1