updateValue(values) {
      this.items_ = {};
      if (typeof values == 'object') {
        for (const key in values) {
          if (values.hasOwnProperty(key) && typeof values[key] == 'string') {
            // Let's empirically limit each value at 2K.
            this.items_[key] = values[key].substring(0, 2048);
          }
        }
      }

      if (this.appState_) {
        this.appState_.persistField(
            print_preview.AppStateField.VENDOR_OPTIONS, this.items_);
      }
    }
/**
     * @param {!Object<string>} values Values to set as the values of vendor
     *     ticket items. Maps vendor item id to the value.
     */
@param {!Object} values Values to set as the values of vendor
ticket items. Maps vendor item id to the value.
@param { !Object } values Values to set as the values of vendor ticket items . Maps vendor item id to the value .
updateValue(values) {
      this.items_ = {};
      if (typeof values == 'object') {
        for (const key in values) {
          if (values.hasOwnProperty(key) && typeof values[key] == 'string') {
            this.items_[key] = values[key].substring(0, 2048);
          }
        }
      }
      if (this.appState_) {
        this.appState_.persistField(
            print_preview.AppStateField.VENDOR_OPTIONS, this.items_);
      }
    }
updateValue ( values ) { this . items_ = { } ; if ( typeof values == 'object' ) { for ( const key in values ) { if ( values . hasOwnProperty ( key ) && typeof values [ key ] == 'string' ) { this . items_ [ key ] = values [ key ] . substring ( 0 , 2048 ) ; } } } if ( this . appState_ ) { this . appState_ . persistField ( print_preview . AppStateField . VENDOR_OPTIONS , this . items_ ) ; } }
@param {!Object<string>} values Values to set as the values of vendor
     ticket items.
@param { !Object<string > } values Values to set as the values of vendor ticket items .
// Let's empirically limit each value at 2K.