ScanModel constructor
const
ScanModel({
- required HeaderModel header,
- required int responseCode,
- required String responseMsg,
- required List<
ScanProductModel> scannedProducts, - 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 = '',
});