toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"printerModel": printerModel.toMap(),
"port": port.toMap(),
"ipAddress": ipAddress,
"macAddress": macAddress,
"localName": _localName,
"lastConnectedAddress": _lastConnectedAddress,
"paperSize": paperSize.toMap(),
"orientation": orientation.toMap(),
"numberOfCopies": numberOfCopies,
"halftone": halftone.toMap(),
"printMode": printMode.toMap(),
"align": align.toMap(),
"valign": valign.toMap(),
"margin": margin.toMap(),
"pjCarbon": pjCarbon,
"pjDensity": pjDensity,
"pjFeedMode": pjFeedMode.toMap(),
"customPaperWidth": customPaperWidth,
"customPaperLength": customPaperLength,
"customFeed": customFeed,
"rjDensity": rjDensity,
"rotate180": rotate180,
"peelMode": peelMode,
"mirrorPrint": mirrorPrint,
"paperPosition": paperPosition.toMap(),
"isAutoCut": isAutoCut,
"isCutAtEnd": isCutAtEnd,
"mode9": mode9,
"skipStatusCheck": skipStatusCheck,
"checkPrintEnd": checkPrintEnd.toMap(),
"rollPrinterCase": rollPrinterCase.toMap(),
"pjSpeed": pjSpeed,
"thresholdingValue": thresholdingValue,
"timeout": timeout.toMap(),
"dashLine": dashLine,
"savePrnPath": savePrnPath,
"overwrite": overwrite,
"isHalfCut": isHalfCut,
"isSpecialTape": isSpecialTape,
"labelNameIndex": labelNameIndex,
"customPaper": customPaper,
"binCustomPaper": binCustomPaper != null ? binCustomPaper?.toMap() : null,
"customPaperInfo": this.customPaperInfo?.toMap(),
"isLabelEndCut": isLabelEndCut,
"printQuality": printQuality.toMap(),
"labelMargin": labelMargin,
"scaleValue": scaleValue,
"isCutMark": isCutMark,
"softFocusing": softFocusing,
"trimTapeAfterData": trimTapeAfterData,
"enabledTethering": enabledTethering,
"rawMode": rawMode,
"workPath": workPath,
"pjPaperKind": pjPaperKind.toMap(),
"useLegacyHalftoneEngine": useLegacyHalftoneEngine,
"banishMargin": banishMargin,
"useCopyCommandInTemplatePrint": useCopyCommandInTemplatePrint,
"labelName": _labelName.toMap()
};
}