ProductReview2 class
Constructors
- ProductReview2({int? productId, ProductReview2StatusEnum? status, String? reviewer, String? reviewerEmail, String? review, int? rating})
- Returns a new ProductReview2 instance.
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- productId ↔ int?
-
Unique identifier for the product that the review belongs to.
getter/setter pair
- rating ↔ int?
-
Review rating (0 to 5).
getter/setter pair
- review ↔ String?
-
The content of the review.
getter/setter pair
- reviewer ↔ String?
-
Reviewer name.
getter/setter pair
- reviewerEmail ↔ String?
-
Reviewer email.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ ProductReview2StatusEnum?
-
Status of the review.
getter/setter pair
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
Static Methods
-
fromJson(
dynamic value) → ProductReview2? -
Returns a new ProductReview2 instance and imports its values from
value
if it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< ProductReview2> -
mapFromJson(
dynamic json) → Map< String, ProductReview2> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< ProductReview2> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.