PrintRowModel.fromMap constructor
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'],
);
}