PrintRowModel.fromMap constructor

PrintRowModel.fromMap(
  1. Map<String, dynamic> map
)

create PrintRowModel from map

Implementation

factory PrintRowModel.fromMap(Map<String, dynamic> map) {
  return PrintRowModel(
    printDataType: map['printDataType'] ?? '0',
    printerWidth: map['printerWidth']?.toInt() ?? 0,
    isCenterAligned: map['isCenterAligned'] ?? false,
    dataToPrint: map['dataToPrint'],
    imagePath: map['imagePath'],
    imageData: map['imageData'],
  );
}