ScanModel constructor

const ScanModel({
  1. required HeaderModel header,
  2. required int responseCode,
  3. required String responseMsg,
  4. required List<ScanProductModel> scannedProducts,
  5. String rawResponse = '',
})

converts pinelabs response to dart object header is the header of the response. Which is same as the header passed in request. responseCode is the response code of the response. responseMsg is the response message of the response. rawResponse is the string response received from pinelabs. scannedProducts is the list of details of scanned products i.ee gives the list of ScanProductModel carrying itemCount & itemDetails

Implementation

const ScanModel({
  required this.header,
  required this.responseCode,
  required this.responseMsg,
  required this.scannedProducts,
  this.rawResponse = '',
});