toMap method

Map<String, dynamic> toMap()

Converts instance to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "colorMode": colorMode?.toNativeValue(),
    "detailedErrorReporting": detailedErrorReporting,
    "duplex": duplex?.toNativeValue(),
    "faxNumber": faxNumber,
    "footerHeight": footerHeight,
    "headerAndFooter": headerAndFooter,
    "headerHeight": headerHeight,
    "horizontalPagination": horizontalPagination?.toNativeValue(),
    "isHorizontallyCentered": isHorizontallyCentered,
    "isSelectionOnly": isSelectionOnly,
    "isVerticallyCentered": isVerticallyCentered,
    "jobDisposition": jobDisposition?.toNativeValue(),
    "jobSavingURL": jobSavingURL?.toString(),
    "localizedPaperName": localizedPaperName,
    "margins": margins?.toMap(),
    "maximumContentHeight": maximumContentHeight,
    "maximumContentWidth": maximumContentWidth,
    "mediaSize": mediaSize?.toMap(),
    "mustCollate": mustCollate,
    "orientation": orientation?.toNativeValue(),
    "pagesAcross": pagesAcross,
    "pagesDown": pagesDown,
    "paperName": paperName,
    "paperRect": paperRect?.toMap(),
    "printableRect": printableRect?.toMap(),
    "resolution": resolution?.toMap(),
    "scalingFactor": scalingFactor,
    "time": time,
    "verticalPagination": verticalPagination?.toNativeValue(),
  };
}