copyWithWrapped method

WebApiServicesAvailabilityServiceTInventoryWarehouseConsignment copyWithWrapped({
  1. Wrapped<String?>? consignorId,
  2. Wrapped<String?>? consignor,
  3. Wrapped<String?>? consignorAgreementId,
  4. Wrapped<String?>? agreementNumber,
  5. Wrapped<double?>? quantity,
  6. Wrapped<DateTime?>? expirationDate,
  7. Wrapped<String?>? inventoryId,
  8. Wrapped<String?>? warehouseId,
})

Implementation

WebApiServicesAvailabilityServiceTInventoryWarehouseConsignment
copyWithWrapped({
  Wrapped<String?>? consignorId,
  Wrapped<String?>? consignor,
  Wrapped<String?>? consignorAgreementId,
  Wrapped<String?>? agreementNumber,
  Wrapped<double?>? quantity,
  Wrapped<DateTime?>? expirationDate,
  Wrapped<String?>? inventoryId,
  Wrapped<String?>? warehouseId,
}) {
  return WebApiServicesAvailabilityServiceTInventoryWarehouseConsignment(
    consignorId: (consignorId != null ? consignorId.value : this.consignorId),
    consignor: (consignor != null ? consignor.value : this.consignor),
    consignorAgreementId: (consignorAgreementId != null
        ? consignorAgreementId.value
        : this.consignorAgreementId),
    agreementNumber: (agreementNumber != null
        ? agreementNumber.value
        : this.agreementNumber),
    quantity: (quantity != null ? quantity.value : this.quantity),
    expirationDate: (expirationDate != null
        ? expirationDate.value
        : this.expirationDate),
    inventoryId: (inventoryId != null ? inventoryId.value : this.inventoryId),
    warehouseId: (warehouseId != null ? warehouseId.value : this.warehouseId),
  );
}