copyWith method

WebApiModulesAgentScheduleBarCodeReservationResource copyWith({
  1. String? name,
  2. String? id,
  3. String? backColor,
  4. String? leftBarColor,
  5. String? orderItemId,
  6. String? barCode,
  7. String? serialNumber,
  8. String? rfid,
  9. String? trackedBy,
  10. String? rentalItemId,
  11. String? frozen,
  12. bool? qcRequired,
  13. String? qcRequiredColor,
  14. String? inventoryId,
  15. String? warehouseId,
  16. String? consignor,
  17. List<WebApiModulesAgentScheduleBarCodeReservationResource>? children,
})

Implementation

WebApiModulesAgentScheduleBarCodeReservationResource copyWith({
  String? name,
  String? id,
  String? backColor,
  String? leftBarColor,
  String? orderItemId,
  String? barCode,
  String? serialNumber,
  String? rfid,
  String? trackedBy,
  String? rentalItemId,
  String? frozen,
  bool? qcRequired,
  String? qcRequiredColor,
  String? inventoryId,
  String? warehouseId,
  String? consignor,
  List<WebApiModulesAgentScheduleBarCodeReservationResource>? children,
}) {
  return WebApiModulesAgentScheduleBarCodeReservationResource(
    name: name ?? this.name,
    id: id ?? this.id,
    backColor: backColor ?? this.backColor,
    leftBarColor: leftBarColor ?? this.leftBarColor,
    orderItemId: orderItemId ?? this.orderItemId,
    barCode: barCode ?? this.barCode,
    serialNumber: serialNumber ?? this.serialNumber,
    rfid: rfid ?? this.rfid,
    trackedBy: trackedBy ?? this.trackedBy,
    rentalItemId: rentalItemId ?? this.rentalItemId,
    frozen: frozen ?? this.frozen,
    qcRequired: qcRequired ?? this.qcRequired,
    qcRequiredColor: qcRequiredColor ?? this.qcRequiredColor,
    inventoryId: inventoryId ?? this.inventoryId,
    warehouseId: warehouseId ?? this.warehouseId,
    consignor: consignor ?? this.consignor,
    children: children ?? this.children,
  );
}