copyWithWrapped method

WebApiModulesInventoryPhysicalInventoryPhysicalInventoryCountItemRequest copyWithWrapped({
  1. Wrapped<String?>? physicalInventoryId,
  2. Wrapped<int?>? physicalItemId,
  3. Wrapped<String?>? inventoryId,
  4. Wrapped<String?>? assetId,
  5. Wrapped<String?>? code,
  6. Wrapped<String?>? trackedBy,
  7. Wrapped<double?>? quantity,
  8. Wrapped<bool?>? replace,
  9. Wrapped<String?>? consignorId,
  10. Wrapped<String?>? countedSpaceId,
})

Implementation

WebApiModulesInventoryPhysicalInventoryPhysicalInventoryCountItemRequest
    copyWithWrapped(
        {Wrapped<String?>? physicalInventoryId,
        Wrapped<int?>? physicalItemId,
        Wrapped<String?>? inventoryId,
        Wrapped<String?>? assetId,
        Wrapped<String?>? code,
        Wrapped<String?>? trackedBy,
        Wrapped<double?>? quantity,
        Wrapped<bool?>? replace,
        Wrapped<String?>? consignorId,
        Wrapped<String?>? countedSpaceId}) {
  return WebApiModulesInventoryPhysicalInventoryPhysicalInventoryCountItemRequest(
      physicalInventoryId: (physicalInventoryId != null
          ? physicalInventoryId.value
          : this.physicalInventoryId),
      physicalItemId: (physicalItemId != null
          ? physicalItemId.value
          : this.physicalItemId),
      inventoryId:
          (inventoryId != null ? inventoryId.value : this.inventoryId),
      assetId: (assetId != null ? assetId.value : this.assetId),
      code: (code != null ? code.value : this.code),
      trackedBy: (trackedBy != null ? trackedBy.value : this.trackedBy),
      quantity: (quantity != null ? quantity.value : this.quantity),
      replace: (replace != null ? replace.value : this.replace),
      consignorId:
          (consignorId != null ? consignorId.value : this.consignorId),
      countedSpaceId: (countedSpaceId != null
          ? countedSpaceId.value
          : this.countedSpaceId));
}