StorableModel class abstract
Base interface for all storable models.
This interface ensures that any model implementing it can:
- Provide a unique identifier.
- Be serialized to JSON format.
- Create a copy of itself with updated fields.
Constructors
Properties
Methods
-
copyWith(
) → StorableModel - Creates a new instance of the model with updated fields.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts the model to a JSON-compatible
Map. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited