copyWithWrapped method

WebApiApplyBottomLineTotalRequest copyWithWrapped({
  1. Wrapped<String?>? orderId,
  2. Wrapped<String?>? purchaseOrderId,
  3. Wrapped<String?>? invoiceId,
  4. Wrapped<String?>? recType,
  5. Wrapped<bool?>? subs,
  6. Wrapped<String?>? totalType,
  7. Wrapped<double?>? total,
  8. Wrapped<bool?>? includeTaxInTotal,
})

Implementation

WebApiApplyBottomLineTotalRequest copyWithWrapped(
    {Wrapped<String?>? orderId,
    Wrapped<String?>? purchaseOrderId,
    Wrapped<String?>? invoiceId,
    Wrapped<String?>? recType,
    Wrapped<bool?>? subs,
    Wrapped<String?>? totalType,
    Wrapped<double?>? total,
    Wrapped<bool?>? includeTaxInTotal}) {
  return WebApiApplyBottomLineTotalRequest(
      orderId: (orderId != null ? orderId.value : this.orderId),
      purchaseOrderId: (purchaseOrderId != null
          ? purchaseOrderId.value
          : this.purchaseOrderId),
      invoiceId: (invoiceId != null ? invoiceId.value : this.invoiceId),
      recType: (recType != null ? recType.value : this.recType),
      subs: (subs != null ? subs.value : this.subs),
      totalType: (totalType != null ? totalType.value : this.totalType),
      total: (total != null ? total.value : this.total),
      includeTaxInTotal: (includeTaxInTotal != null
          ? includeTaxInTotal.value
          : this.includeTaxInTotal));
}