in packages/azure-kusto-data/src/clientRequestProperties.ts [78:96]
toJSON() {
const json: {
Options?: { [option: string]: any };
Parameters?: { [option: string]: any };
} = {};
if (Object.keys(this._options).length !== 0) {
json.Options = { ...this._options };
if (json.Options.servertimeout) {
json.Options.servertimeout = this._msToTimespan(json.Options.servertimeout as number);
}
}
if (Object.keys(this._parameters).length !== 0) {
json.Parameters = { ...this._parameters };
}
return Object.keys(json).length !== 0 ? json : null;
}