copyWithWrapped method

WebApiModulesInventoryRepairCreateRepairRequest copyWithWrapped({
  1. Wrapped<String?>? contractId,
  2. Wrapped<String?>? orderId,
  3. Wrapped<String?>? orderItemId,
  4. Wrapped<String?>? assetId,
  5. Wrapped<String?>? consignorId,
  6. Wrapped<String?>? consignorAgreementId,
  7. Wrapped<int?>? quantity,
  8. Wrapped<String?>? officeLocationId,
  9. Wrapped<String?>? warehouseId,
})

Implementation

WebApiModulesInventoryRepairCreateRepairRequest copyWithWrapped({
  Wrapped<String?>? contractId,
  Wrapped<String?>? orderId,
  Wrapped<String?>? orderItemId,
  Wrapped<String?>? assetId,
  Wrapped<String?>? consignorId,
  Wrapped<String?>? consignorAgreementId,
  Wrapped<int?>? quantity,
  Wrapped<String?>? officeLocationId,
  Wrapped<String?>? warehouseId,
}) {
  return WebApiModulesInventoryRepairCreateRepairRequest(
    contractId: (contractId != null ? contractId.value : this.contractId),
    orderId: (orderId != null ? orderId.value : this.orderId),
    orderItemId: (orderItemId != null ? orderItemId.value : this.orderItemId),
    assetId: (assetId != null ? assetId.value : this.assetId),
    consignorId: (consignorId != null ? consignorId.value : this.consignorId),
    consignorAgreementId: (consignorAgreementId != null
        ? consignorAgreementId.value
        : this.consignorAgreementId),
    quantity: (quantity != null ? quantity.value : this.quantity),
    officeLocationId: (officeLocationId != null
        ? officeLocationId.value
        : this.officeLocationId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
  );
}