Checkout constructor

Checkout({
  1. required String id,
  2. required bool ready,
  3. required AvailableShippingRates? availableShippingRates,
  4. required String createdAt,
  5. required String currencyCode,
  6. required PriceV2 totalTaxV2,
  7. required PriceV2 totalPriceV2,
  8. required bool taxesIncluded,
  9. required bool taxExempt,
  10. required PriceV2 subtotalPriceV2,
  11. required bool requiresShipping,
  12. @Default([]) List<AppliedGiftCards> appliedGiftCards,
  13. @JsonKey(fromJson: JsonHelper.lineItems) required List<LineItem> lineItems,
  14. Order? order,
  15. String? orderStatusUrl,
  16. String? shopifyPaymentsAccountId,
  17. MailingAddress? shippingAddress,
  18. ShippingRates? shippingLine,
  19. String? email,
  20. String? completedAt,
  21. String? note,
  22. String? webUrl,
  23. String? updatedAt,
})

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;