Checkout constructor
Checkout({
- required String id,
- required bool ready,
- required AvailableShippingRates? availableShippingRates,
- required String createdAt,
- required String currencyCode,
- required PriceV2 totalTaxV2,
- required PriceV2 totalPriceV2,
- required bool taxesIncluded,
- required bool taxExempt,
- required PriceV2 subtotalPriceV2,
- required bool requiresShipping,
- @Default([]) List<
AppliedGiftCards> appliedGiftCards, - @JsonKey(fromJson: JsonHelper.lineItems) required List<
LineItem> lineItems, - Order? order,
- String? orderStatusUrl,
- String? shopifyPaymentsAccountId,
- MailingAddress? shippingAddress,
- ShippingRates? shippingLine,
- String? email,
- String? completedAt,
- String? note,
- String? webUrl,
- String? updatedAt,
The checkout constructor
Implementation
factory Checkout({
required String id,
required bool ready,
required AvailableShippingRates? availableShippingRates,
required String createdAt,
required String currencyCode,
required PriceV2 totalTaxV2,
required PriceV2 totalPriceV2,
required bool taxesIncluded,
required bool taxExempt,
required PriceV2 subtotalPriceV2,
required bool requiresShipping,
@Default([]) List<AppliedGiftCards> appliedGiftCards,
@JsonKey(fromJson: JsonHelper.lineItems) required List<LineItem> lineItems,
Order? order,
String? orderStatusUrl,
String? shopifyPaymentsAccountId,
MailingAddress? shippingAddress,
ShippingRates? shippingLine,
String? email,
String? completedAt,
String? note,
String? webUrl,
String? updatedAt,
}) = _Checkout;