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

StorableModel()

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Unique identifier for the storable model.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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