toMap method

Map<String, dynamic> toMap()

Converts instance to a map.

Implementation

Map<String, dynamic> toMap() {
  return {
    "attributes": attributes?.toMap(),
    "canSpawnSeparateThread": canSpawnSeparateThread,
    "copies": copies,
    "creationTime": creationTime,
    "currentPage": currentPage,
    "firstPage": firstPage,
    "isCopyingOperation": isCopyingOperation,
    "label": label,
    "lastPage": lastPage,
    "numberOfPages": numberOfPages,
    "pageOrder": pageOrder?.toNativeValue(),
    "preferredRenderingQuality": preferredRenderingQuality?.toNativeValue(),
    "printer": printer?.toMap(),
    "showsPrintPanel": showsPrintPanel,
    "showsProgressPanel": showsProgressPanel,
    "state": state?.toNativeValue(),
  };
}