PrintModel.fromMap constructor

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

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),
    ),
  );
}