ProductDeleteImpact class abstract

What a product deletion would touch, shown in the operator UI before the delete or permanent purge is confirmed. Counts are for the product's whole tree: batches, serialized units, verification sessions, and fraud alerts.

Implemented types

Constructors

ProductDeleteImpact({required UuidValue productId, required String productName, required int batchCount, required int identityCount, required int verificationCount, required int alertCount, required bool inRecycleBin})
factory
ProductDeleteImpact.fromJson(Map<String, dynamic> jsonSerialization)
factory

Properties

alertCount ↔ int
getter/setter pair
batchCount ↔ int
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
identityCount ↔ int
getter/setter pair
inRecycleBin ↔ bool
True when the product already sits in the recycle bin, so the UI can label the destructive action as permanent.
getter/setter pair
productId ↔ UuidValue
getter/setter pair
productName ↔ String
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
verificationCount ↔ int
getter/setter pair

Methods

copyWith({UuidValue? productId, String? productName, int? batchCount, int? identityCount, int? verificationCount, int? alertCount, bool? inRecycleBin}) → ProductDeleteImpact
Returns a shallow copy of this ProductDeleteImpact with some or all fields replaced by the given arguments.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Returns a serialized JSON structure of the model which also includes fields used by the database.
override
toJsonForProtocol() → Map<String, dynamic>
Returns a JSON structure of the model, optimized for Protocol communication.
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited