copyWith method

WebApiModulesHomeControlsInventorySearchPreviewInventorySearchPreview copyWith({
  1. String? id,
  2. String? sessionId,
  3. String? parentId,
  4. String? grandParentId,
  5. String? inventoryId,
  6. String? warehouseId,
  7. double? quantity,
  8. String? note,
  9. String? auditNote,
  10. String? recordTitle,
  11. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  12. List<FwStandardDataFwCustomValue>? custom,
  13. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  14. List<FwStandardDataFwTranslatedValue>? translation,
})

Implementation

WebApiModulesHomeControlsInventorySearchPreviewInventorySearchPreview
    copyWith(
        {String? id,
        String? sessionId,
        String? parentId,
        String? grandParentId,
        String? inventoryId,
        String? warehouseId,
        double? quantity,
        String? note,
        String? auditNote,
        String? recordTitle,
        List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
        List<FwStandardDataFwCustomValue>? custom,
        List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
        List<FwStandardDataFwTranslatedValue>? translation}) {
  return WebApiModulesHomeControlsInventorySearchPreviewInventorySearchPreview(
      id: id ?? this.id,
      sessionId: sessionId ?? this.sessionId,
      parentId: parentId ?? this.parentId,
      grandParentId: grandParentId ?? this.grandParentId,
      inventoryId: inventoryId ?? this.inventoryId,
      warehouseId: warehouseId ?? this.warehouseId,
      quantity: quantity ?? this.quantity,
      note: note ?? this.note,
      auditNote: auditNote ?? this.auditNote,
      recordTitle: recordTitle ?? this.recordTitle,
      fields: fields ?? this.fields,
      custom: custom ?? this.custom,
      defaultFieldAttributes:
          defaultFieldAttributes ?? this.defaultFieldAttributes,
      translation: translation ?? this.translation);
}