ProductOptionValue class
An option value is one of the possible values of a Product Option. Product Variants specify a unique combination of product option values.
- Annotations
-
- @JsonSerializable()
Constructors
-
ProductOptionValue({required String id, required String value, required String optionId, ProductOption? option, String? variantId, ProductVariant? variant, required String createdAt, required String updatedAt, String? deletedAt, Map<
String, dynamic> ? metadata}) -
ProductOptionValue.fromJson(Map<
String, dynamic> json) -
factory
Properties
- createdAt ↔ String
-
The date with timezone at which the resource was created.
getter/setter pair
- deletedAt ↔ String?
-
The date with timezone at which the resource was deleted.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ String
-
The product option value's ID
getter/setter pair
-
metadata
↔ Map<
String, dynamic> ? -
An optional key-value map with additional details
getter/setter pair
- option ↔ ProductOption?
-
The details of the product option that the Product Option Value belongs to.
getter/setter pair
- optionId ↔ String
-
The ID of the Product Option that the Product Option Value belongs to.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt ↔ String
-
The date with timezone at which the resource was updated.
getter/setter pair
- value ↔ String
-
The value that the Product Variant has defined for the specific Product Option (e.g. if the Product Option is "Size" this value could be
Small
,Medium
orLarge
).getter/setter pair - variant ↔ ProductVariant?
-
The details of the product variant that uses this product option value.
getter/setter pair
- variantId ↔ String?
-
The ID of the product variant that uses this product option value.
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.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited