setProcessedStatsToJsonFunc(jsonFunc) {
        this.gate.processedStatsToJsonFunc = jsonFunc;
        return this;
    }
Specifies how to convert custom stats data into json when exporting.
@param {undefined|!function(data: *) : *} jsonFunc
@returns {!GateBuilder}