toSqlite abstract method
Serializes the model instance to a Map suitable for insertion or update into an SQLite database.
This method should handle any necessary type conversions, such as:
DateTime
to ISO8601String
or Unix timestampint
.bool
toint
(0 or 1).- Enums to
String
orint
. - Custom objects to a storable format (e.g., JSON string).
Implementation
Map<String, dynamic> toSqlite();