copyWithWrapped method

WebApiModulesAgentOrderQuikSaleResponse copyWithWrapped({
  1. Wrapped<int?>? status,
  2. Wrapped<bool?>? success,
  3. Wrapped<String?>? msg,
  4. Wrapped<String?>? contractId,
  5. Wrapped<String?>? invoiceId,
  6. Wrapped<String?>? chgBatchId,
  7. Wrapped<WebApiModulesBillingInvoiceInvoice?>? invoice,
  8. Wrapped<WebApiModulesWarehouseContractContract?>? contract,
})

Implementation

WebApiModulesAgentOrderQuikSaleResponse copyWithWrapped({
  Wrapped<int?>? status,
  Wrapped<bool?>? success,
  Wrapped<String?>? msg,
  Wrapped<String?>? contractId,
  Wrapped<String?>? invoiceId,
  Wrapped<String?>? chgBatchId,
  Wrapped<WebApiModulesBillingInvoiceInvoice?>? invoice,
  Wrapped<WebApiModulesWarehouseContractContract?>? contract,
}) {
  return WebApiModulesAgentOrderQuikSaleResponse(
    status: (status != null ? status.value : this.status),
    success: (success != null ? success.value : this.success),
    msg: (msg != null ? msg.value : this.msg),
    contractId: (contractId != null ? contractId.value : this.contractId),
    invoiceId: (invoiceId != null ? invoiceId.value : this.invoiceId),
    chgBatchId: (chgBatchId != null ? chgBatchId.value : this.chgBatchId),
    invoice: (invoice != null ? invoice.value : this.invoice),
    contract: (contract != null ? contract.value : this.contract),
  );
}