toMap method
Converts instance to a map.
Implementation
Map<String, dynamic> toMap() {
return {
"animated": animated,
"canSpawnSeparateThread": canSpawnSeparateThread,
"colorMode": colorMode?.toNativeValue(),
"copies": copies,
"detailedErrorReporting": detailedErrorReporting,
"duplexMode": duplexMode?.toNativeValue(),
"faxNumber": faxNumber,
"firstPage": firstPage,
"footerHeight": footerHeight,
"forceRenderingQuality": forceRenderingQuality?.toNativeValue(),
"handledByClient": handledByClient,
"headerAndFooter": headerAndFooter,
"headerHeight": headerHeight,
"horizontalPagination": horizontalPagination?.toNativeValue(),
"isHorizontallyCentered": isHorizontallyCentered,
"isVerticallyCentered": isVerticallyCentered,
"jobDisposition": jobDisposition?.toNativeValue(),
"jobName": jobName,
"jobSavingURL": jobSavingURL?.toString(),
"lastPage": lastPage,
"margins": margins?.toMap(),
"maximumContentHeight": maximumContentHeight,
"maximumContentWidth": maximumContentWidth,
"mediaSize": mediaSize?.toMap(),
"mustCollate": mustCollate,
"numberOfPages": numberOfPages,
"orientation": orientation?.toNativeValue(),
"outputType": outputType?.toNativeValue(),
"pageOrder": pageOrder?.toNativeValue(),
"pagesAcross": pagesAcross,
"pagesDown": pagesDown,
"paperName": paperName,
"resolution": resolution?.toMap(),
"scalingFactor": scalingFactor,
"showsNumberOfCopies": showsNumberOfCopies,
"showsPageRange": showsPageRange,
"showsPageSetupAccessory": showsPageSetupAccessory,
"showsPaperOrientation": showsPaperOrientation,
"showsPaperSelectionForLoadedPapers": showsPaperSelectionForLoadedPapers,
"showsPaperSize": showsPaperSize,
"showsPreview": showsPreview,
"showsPrintPanel": showsPrintPanel,
"showsPrintSelection": showsPrintSelection,
"showsProgressPanel": showsProgressPanel,
"showsScaling": showsScaling,
"time": time,
"verticalPagination": verticalPagination?.toNativeValue(),
};
}