copyWith method

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

Implementation

WebApiModulesAgentScheduleBarCodeReservationResource copyWith(
    {String? name,
    String? id,
    String? backColor,
    String? leftBarColor,
    String? orderItemId,
    String? barCode,
    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,
      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);
}