in indigo.js [2421:2427]
Indigo.prototype.unserialize = function(array) {
this._setSessionId();
let buf = new Buffer(array);
let pointer = alloc(refType('byte'), buf);
let res = this._lib.indigoUnserialize(pointer.deref(), buf.length);
return new IndigoObject(this, this._checkResult(res));
};