toJson() {
        // Call the onSerialize callbacks and put those values into the store.
        for (const /** @type {?} */ key in this.onSerializeCallbacks) {
            if (this.onSerializeCallbacks.hasOwnProperty(key)) {
                try {
                    this.store[key] = this.onSerializeCallbacks[key]();
                }
                catch (/** @type {?} */ e) {
                    console.warn('Exception in onSerialize callback: ', e);
                }
            }
        }
        return JSON.stringify(this.store);
    }
/**
     * Serialize the current state of the store to JSON.
     * @return {?}
     */
Serialize the current state of the store to JSON.
Serialize the current state of the store to JSON .
toJson() {
        for (const  key in this.onSerializeCallbacks) {
            if (this.onSerializeCallbacks.hasOwnProperty(key)) {
                try {
                    this.store[key] = this.onSerializeCallbacks[key]();
                }
                catch ( e) {
                    console.warn('Exception in onSerialize callback: ', e);
                }
            }
        }
        return JSON.stringify(this.store);
    }
toJson ( ) { for ( const key in this . onSerializeCallbacks ) { if ( this . onSerializeCallbacks . hasOwnProperty ( key ) ) { try { this . store [ key ] = this . onSerializeCallbacks [ key ] ( ) ; } catch ( e ) { console . warn ( 'Exception in onSerialize callback: ' , e ) ; } } } return JSON . stringify ( this . store ) ; }
Serialize the current state of the store to JSON.
Serialize the current state of the store to JSON .
// Call the onSerialize callbacks and put those values into the store. /** @type {?} */ /** @type {?} */