ScanProductModel class
This class holds the scanned product details:
- scanned product count i.e. itemCount
- 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
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