PrintModel.fromMap constructor
to map
Implementation
factory PrintModel.fromMap(Map<String, dynamic> map) {
return PrintModel(
printRefNo: map['PrintRefNo'] ?? '',
savePrintData: map['SavePrintData'] ?? true,
data: List<PrintRowModel>.from(
map['Data']?.map(PrintRowModel.fromMap),
),
);
}