ScanProductModel.fromMap constructor

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

get ScanProductModel from map.

Implementation

factory ScanProductModel.fromMap(Map<String, dynamic> map) {
  return ScanProductModel(
    itemCount: map['itemCount'] ?? '',
    itemValue: map['itemValue'] ?? '',
  );
}