copyWith method

WebApiModulesInventoryInventoryReceiptInventoryReceiptItem copyWith({
  1. String? inventoryReceiptItemId,
  2. String? inventoryReceiptId,
  3. String? inventoryId,
  4. String? iCode,
  5. String? description,
  6. int? quantity,
  7. double? cost,
  8. String? trackedBy,
  9. double? discountPercent,
  10. double? discountAmount,
  11. bool? taxable,
  12. double? taxRate,
  13. bool? assigned,
  14. int? orderBy,
  15. String? dateStamp,
  16. String? auditNote,
  17. String? recordTitle,
  18. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  19. List<FwStandardDataFwCustomValue>? custom,
  20. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  21. List<FwStandardDataFwTranslatedValue>? translation,
})

Implementation

WebApiModulesInventoryInventoryReceiptInventoryReceiptItem copyWith(
    {String? inventoryReceiptItemId,
    String? inventoryReceiptId,
    String? inventoryId,
    String? iCode,
    String? description,
    int? quantity,
    double? cost,
    String? trackedBy,
    double? discountPercent,
    double? discountAmount,
    bool? taxable,
    double? taxRate,
    bool? assigned,
    int? orderBy,
    String? dateStamp,
    String? auditNote,
    String? recordTitle,
    List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
    List<FwStandardDataFwCustomValue>? custom,
    List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
    List<FwStandardDataFwTranslatedValue>? translation}) {
  return WebApiModulesInventoryInventoryReceiptInventoryReceiptItem(
      inventoryReceiptItemId:
          inventoryReceiptItemId ?? this.inventoryReceiptItemId,
      inventoryReceiptId: inventoryReceiptId ?? this.inventoryReceiptId,
      inventoryId: inventoryId ?? this.inventoryId,
      iCode: iCode ?? this.iCode,
      description: description ?? this.description,
      quantity: quantity ?? this.quantity,
      cost: cost ?? this.cost,
      trackedBy: trackedBy ?? this.trackedBy,
      discountPercent: discountPercent ?? this.discountPercent,
      discountAmount: discountAmount ?? this.discountAmount,
      taxable: taxable ?? this.taxable,
      taxRate: taxRate ?? this.taxRate,
      assigned: assigned ?? this.assigned,
      orderBy: orderBy ?? this.orderBy,
      dateStamp: dateStamp ?? this.dateStamp,
      auditNote: auditNote ?? this.auditNote,
      recordTitle: recordTitle ?? this.recordTitle,
      fields: fields ?? this.fields,
      custom: custom ?? this.custom,
      defaultFieldAttributes:
          defaultFieldAttributes ?? this.defaultFieldAttributes,
      translation: translation ?? this.translation);
}