ScanProductModel class

This class holds the scanned product details:

  1. scanned product count i.e. itemCount
  2. scanned product value i.e itemValue Note : Should be used in multi Scan flow only
Annotations

Constructors

ScanProductModel({required int itemCount, required String itemValue})
converts pinelabs response to dart object itemCount is the count of item scanned in multi scann. itemValue is the value of the scanned item.
const
ScanProductModel.fromJson(String source)
get ScanProductModel from json.
factory
ScanProductModel.fromMap(Map<String, dynamic> map)
get ScanProductModel from map.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
itemCount int
ItemCount of the scanned product
final
itemValue String
Item value of the scanned product
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? itemCount, String? itemValue}) ScanProductModel
copy new instance of ScanProductModel.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
get json from ScanProductModel
toMap() Map<String, dynamic>
get map from ScanProductModel.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override