ObjectData class final
- Annotations
-
- @JsonSerializable()
Constructors
- ObjectData({dynamic price, int? quantity, dynamic discount})
-
Returns a new ObjectData instance.
const
-
ObjectData.fromJson(Map<
String, dynamic> json) -
factory
Properties
- discount → dynamic
-
One of types:
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- price → dynamic
-
One of types:
final
- quantity → int?
-
Quantity of a product that has been purchased or added to the cart. The total purchase value is the sum of
quantity
multiplied with theprice
for each purchased item.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override