toJSON(obj) {
        var json = MaterialSerializer.prototype.toJSON.call(this, obj);
        json.isSpriteMaterial = true;
        return json;
    }
SpriteMaterialSerializer
@author tengge / https://github.com/tengge1