ProductResultV3 class
API V3 answer from a call to /api/v3/product/$barcode.
Same /api/v3/product/$barcode URL can be used for GET (get that product) and PATCH (upsert that product and return the modified version).
- Inheritance
-
- Object
- JsonObject
- ProductResultV3
- Annotations
-
- @JsonSerializable()
Constructors
- ProductResultV3()
-
ProductResultV3.fromJson(Map<
String, dynamic> json) -
factory
Properties
- barcode ↔ String?
-
Barcode of a GET operation.
getter/setter pair
-
errors
↔ List<
ProductResultFieldAnswer> ? -
Errors.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- product ↔ Product?
-
getter/setter pair
- result ↔ LocalizedTag?
-
Result, e.g. "Product found".
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ String?
-
Status.
getter/setter pair
-
warnings
↔ List<
ProductResultFieldAnswer> ? -
Warnings.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toData(
) → Map< String, String> -
inherited
-
toJson(
) → Map< String, dynamic> -
override
-
toString(
) → String -
A string representation of this object.
override
-
toValueString(
) → String -
Returns all values as a String separated by a hyphen
value1 - value2 - value3
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- resultProductFound → const String
-
Possible value for
result.id
: product found - resultProductNotFound → const String
-
Possible value for
result.id
: product not found - statusFailure → const String
- Possible value for status: the operation failed.
- statusSuccess → const String
- Possible value for status: the operation succeeded.
- statusWarning → const String
- Possible value for status: the operation succeeded with warnings.