Cart constructor

Cart({
  1. String? cartId,
  2. String? intent,
  3. List<Items>? items,
  4. UnitPrice? total,
  5. List<ShippingMethod>? shippingMethods,
  6. ShippingAddress? shippingAddress,
  7. ShippingAddress? billingAddress,
  8. UnitPrice? totalAllowedOverCaptureAmount,
})

Implementation

Cart({
  this.cartId,
  this.intent,
  this.items,
  this.total,
  this.shippingMethods,
  this.shippingAddress,
  this.billingAddress,
  this.totalAllowedOverCaptureAmount,
});