copyWith method

WebApiModulesWarehouseExchangeExchangeItemInResponse copyWith({
  1. String? contractId,
  2. String? inCode,
  3. int? quantity,
  4. String? orderId,
  5. String? orderNumber,
  6. String? orderDescription,
  7. String? dealId,
  8. String? deal,
  9. String? departmentId,
  10. WebApiModulesWarehouseExchangeExchangeItemStatus? itemStatus,
  11. int? status,
  12. bool? success,
  13. String? msg,
})

Implementation

WebApiModulesWarehouseExchangeExchangeItemInResponse copyWith(
    {String? contractId,
    String? inCode,
    int? quantity,
    String? orderId,
    String? orderNumber,
    String? orderDescription,
    String? dealId,
    String? deal,
    String? departmentId,
    WebApiModulesWarehouseExchangeExchangeItemStatus? itemStatus,
    int? status,
    bool? success,
    String? msg}) {
  return WebApiModulesWarehouseExchangeExchangeItemInResponse(
      contractId: contractId ?? this.contractId,
      inCode: inCode ?? this.inCode,
      quantity: quantity ?? this.quantity,
      orderId: orderId ?? this.orderId,
      orderNumber: orderNumber ?? this.orderNumber,
      orderDescription: orderDescription ?? this.orderDescription,
      dealId: dealId ?? this.dealId,
      deal: deal ?? this.deal,
      departmentId: departmentId ?? this.departmentId,
      itemStatus: itemStatus ?? this.itemStatus,
      status: status ?? this.status,
      success: success ?? this.success,
      msg: msg ?? this.msg);
}