function parseLocalDestination(destinationInfo) {
    const options = {
      description: destinationInfo.printerDescription,
      isEnterprisePrinter: destinationInfo.cupsEnterprisePrinter
    };
    if (destinationInfo.printerOptions) {
      // Convert options into cloud print tags format.
      options.tags =
          Object.keys(destinationInfo.printerOptions).map(function(key) {
            return '__cp__' + key + '=' + this[key];
          }, destinationInfo.printerOptions);
    }
    return new print_preview.Destination(
        destinationInfo.deviceName, print_preview.DestinationType.LOCAL,
        cr.isChromeOS ? print_preview.DestinationOrigin.CROS :
                        print_preview.DestinationOrigin.LOCAL,
        destinationInfo.printerName, false /*isRecent*/,
        print_preview.DestinationConnectionStatus.ONLINE, options);
  }
/**
   * Parses a local print destination.
   * @param {!print_preview.LocalDestinationInfo} destinationInfo Information
   *     describing a local print destination.
   * @return {!print_preview.Destination} Parsed local print destination.
   */
Parses a local print destination.
@param {!print_preview.LocalDestinationInfo} destinationInfo Information
describing a local print destination.
@return {!print_preview.Destination} Parsed local print destination.
Parses a local print destination . @param { !print_preview . LocalDestinationInfo } destinationInfo Information describing a local print destination . @return { !print_preview . Destination } Parsed local print destination .
function parseLocalDestination(destinationInfo) {
    const options = {
      description: destinationInfo.printerDescription,
      isEnterprisePrinter: destinationInfo.cupsEnterprisePrinter
    };
    if (destinationInfo.printerOptions) {
      options.tags =
          Object.keys(destinationInfo.printerOptions).map(function(key) {
            return '__cp__' + key + '=' + this[key];
          }, destinationInfo.printerOptions);
    }
    return new print_preview.Destination(
        destinationInfo.deviceName, print_preview.DestinationType.LOCAL,
        cr.isChromeOS ? print_preview.DestinationOrigin.CROS :
                        print_preview.DestinationOrigin.LOCAL,
        destinationInfo.printerName, false ,
        print_preview.DestinationConnectionStatus.ONLINE, options);
  }
function parseLocalDestination ( destinationInfo ) { const options = { description : destinationInfo . printerDescription , isEnterprisePrinter : destinationInfo . cupsEnterprisePrinter } ; if ( destinationInfo . printerOptions ) { options . tags = Object . keys ( destinationInfo . printerOptions ) . map ( function ( key ) { return '__cp__' + key + '=' + this [ key ] ; } , destinationInfo . printerOptions ) ; } return new print_preview . Destination ( destinationInfo . deviceName , print_preview . DestinationType . LOCAL , cr . isChromeOS ? print_preview . DestinationOrigin . CROS : print_preview . DestinationOrigin . LOCAL , destinationInfo . printerName , false , print_preview . DestinationConnectionStatus . ONLINE , options ) ; }
Parses a local print destination.
Parses a local print destination .
// Convert options into cloud print tags format. /*isRecent*/