copyWithWrapped method

WebApiModulesInventoryInventoryReceiptGetReceiptTotalsResponse copyWithWrapped({
  1. Wrapped<double?>? shipping,
  2. Wrapped<double?>? miscCost,
  3. Wrapped<double?>? credit,
  4. Wrapped<double?>? extended,
  5. Wrapped<double?>? discountAmount,
  6. Wrapped<double?>? taxAmount,
  7. Wrapped<double?>? totalItems,
  8. Wrapped<double?>? subTotal,
  9. Wrapped<double?>? total,
})

Implementation

WebApiModulesInventoryInventoryReceiptGetReceiptTotalsResponse
    copyWithWrapped(
        {Wrapped<double?>? shipping,
        Wrapped<double?>? miscCost,
        Wrapped<double?>? credit,
        Wrapped<double?>? extended,
        Wrapped<double?>? discountAmount,
        Wrapped<double?>? taxAmount,
        Wrapped<double?>? totalItems,
        Wrapped<double?>? subTotal,
        Wrapped<double?>? total}) {
  return WebApiModulesInventoryInventoryReceiptGetReceiptTotalsResponse(
      shipping: (shipping != null ? shipping.value : this.shipping),
      miscCost: (miscCost != null ? miscCost.value : this.miscCost),
      credit: (credit != null ? credit.value : this.credit),
      extended: (extended != null ? extended.value : this.extended),
      discountAmount: (discountAmount != null
          ? discountAmount.value
          : this.discountAmount),
      taxAmount: (taxAmount != null ? taxAmount.value : this.taxAmount),
      totalItems: (totalItems != null ? totalItems.value : this.totalItems),
      subTotal: (subTotal != null ? subTotal.value : this.subTotal),
      total: (total != null ? total.value : this.total));
}