fromMap static method
dynamic
fromMap(
- Map map
)
Implementation
static fromMap(Map<dynamic, dynamic> map) {
return PrintParameters(
paperSize: MediaSize.fromMap(map["paperSize"]),
mediaType: PrintMediaType.fromMap(map["mediaType"]),
duplex: Duplex.fromMap(map["duplex"]),
color: ColorProcessing.fromMap(map["color"]),
orientation: PrintOrientation.fromMap(map["orientation"]),
scale: PrintScale.fromMap(map["scale"]),
quality: PrintQuality.fromMap(map["quality"]),
resolution: Resolution.fromMap(map["resolution"]),
margin: PrintMargin.fromMap(map["margin"]),
printContent: ContentType.fromMap(map["printContent"]),
copyCount: map["copyCount"],
collate: PrintCollate.fromMap(map["collate"]),
colorMatching: PrintColorMatching.fromMap(map["colorMatching"]),
origin: PrintOrigin.fromMap(map["origin"]),
customScaling: PrintCustomScaling.fromMap(map["customScaling"]),
directPrinting: map["directPrinting"]);
}