Model class abstract
Base class for all database models in Kronix.
Extend this class to define your entity structure and mapping.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int?
-
The primary key (auto-incrementing integer).
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- table → String
-
The name of the database table associated with this model.
no setter
Methods
-
fromJson(
Map< String, dynamic> json) → void - Populates the model instance from a JSON-compatible map.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts the model instance to a JSON-compatible map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited