copyWith method

WebApiModulesInventoryInventoryRetireInventoryRequest copyWith({
  1. String? inventoryId,
  2. String? warehouseId,
  3. String? itemId,
  4. String? retiredReasonId,
  5. String? notes,
  6. double? quantity,
  7. bool? changeICode,
  8. String? consignorId,
  9. String? consignorAgreementId,
  10. bool? completeRepair,
  11. String? completeRepairId,
})

Implementation

WebApiModulesInventoryInventoryRetireInventoryRequest copyWith({
  String? inventoryId,
  String? warehouseId,
  String? itemId,
  String? retiredReasonId,
  String? notes,
  double? quantity,
  bool? changeICode,
  String? consignorId,
  String? consignorAgreementId,
  bool? completeRepair,
  String? completeRepairId,
}) {
  return WebApiModulesInventoryInventoryRetireInventoryRequest(
    inventoryId: inventoryId ?? this.inventoryId,
    warehouseId: warehouseId ?? this.warehouseId,
    itemId: itemId ?? this.itemId,
    retiredReasonId: retiredReasonId ?? this.retiredReasonId,
    notes: notes ?? this.notes,
    quantity: quantity ?? this.quantity,
    changeICode: changeICode ?? this.changeICode,
    consignorId: consignorId ?? this.consignorId,
    consignorAgreementId: consignorAgreementId ?? this.consignorAgreementId,
    completeRepair: completeRepair ?? this.completeRepair,
    completeRepairId: completeRepairId ?? this.completeRepairId,
  );
}