ProductVariantCheckout class
The product variant checkout
- Annotations
-
- @freezed
Constructors
-
ProductVariantCheckout({required String title, required bool availableForSale, required bool requiresShipping, required String id, PriceV2? priceV2, PriceV2? price, String? sku, ShopifyImage? image, PriceV2? compareAtPrice, double? weight, String? weightUnit, @Default(0) int quantityAvailable, Product? product, @Default([]) List<
SelectedOption> selectedOptions}) -
The product variant checkout constructor
factory
-
ProductVariantCheckout.fromJson(Map<
String, dynamic> json) -
The product variant checkout from json
factory
Properties
- availableForSale → bool
-
no setterinherited
- compareAtPrice → PriceV2?
-
no setterinherited
-
copyWith
→ $ProductVariantCheckoutCopyWith<
ProductVariantCheckout> -
Create a copy of ProductVariantCheckout
with the given fields replaced by the non-null parameter values.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- image → ShopifyImage?
-
no setterinherited
- price → PriceV2?
-
no setterinherited
- priceV2 → PriceV2?
-
no setterinherited
- product → Product?
-
no setterinherited
- quantityAvailable → int
-
no setterinherited
- requiresShipping → bool
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
selectedOptions
→ List<
SelectedOption> -
no setterinherited
- sku → String?
-
no setterinherited
- title → String
-
no setterinherited
- weight → double?
-
no setterinherited
- weightUnit → String?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this ProductVariantCheckout to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited