ScanResponseModel class
converts pinelabs response to dart object
- Annotations
Constructors
- ScanResponseModel.new({required int operationType, required int responseCode, required String responseMsg, required String scannedData, String rawResponse = ''})
-
converts pinelabs response to dart object
operationType
is the operation code of the response.responseCode
is the response code of the response.responseMsg
is the response message of the response.rawResponse
is the string response received from pinelabs.const - ScanResponseModel.fromJson(String source)
-
get ScanResponseModel from json string.
factory
-
ScanResponseModel.fromMap(Map<
String, dynamic> map) -
get ScanResponseModel from
map
.factory
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- operationType → int
-
operationType is the opeation code of the response.
final
- rawResponse → String
-
rawResponse is the string response received from pinelabs.
final
- responseCode → int
-
responseCode is the response code of the response.
final
- responseMsg → String
-
responseMsg is the response message of the response.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scannedData → String
-
scannedData is the response of the scanned product
final
Methods
-
copyWith(
{int? operationType, int? responseCode, String? responseMsg, String? rawResponse, String? scannedData}) → ScanResponseModel - copy new instance of ScanResponseModel.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String - get json string from ScanResponseModel.
-
toMap(
) → Map< String, dynamic> - get map from ScanResponseModel.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override