copyWith method

WebApiModulesHomeControlsInventoryMaterialInventoryMaterial copyWith({
  1. String? inventoryMaterialId,
  2. String? inventoryId,
  3. String? materialId,
  4. String? description,
  5. String? dateStamp,
  6. String? auditNote,
  7. String? recordTitle,
  8. List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
  9. List<FwStandardDataFwCustomValue>? custom,
  10. List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
  11. List<FwStandardDataFwTranslatedValue>? translation,
})

Implementation

WebApiModulesHomeControlsInventoryMaterialInventoryMaterial copyWith(
    {String? inventoryMaterialId,
    String? inventoryId,
    String? materialId,
    String? description,
    String? dateStamp,
    String? auditNote,
    String? recordTitle,
    List<FwStandardBusinessLogicFwBusinessLogicFieldDefinition>? fields,
    List<FwStandardDataFwCustomValue>? custom,
    List<FwStandardDataFwDefaultAttribute>? defaultFieldAttributes,
    List<FwStandardDataFwTranslatedValue>? translation}) {
  return WebApiModulesHomeControlsInventoryMaterialInventoryMaterial(
      inventoryMaterialId: inventoryMaterialId ?? this.inventoryMaterialId,
      inventoryId: inventoryId ?? this.inventoryId,
      materialId: materialId ?? this.materialId,
      description: description ?? this.description,
      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);
}