toJson abstract method

Map<String, dynamic> toJson()

Serializes the model instance to a JSON-compatible Map.

This map is typically used for sending data to a remote server (e.g., Supabase). It should represent the model in the format expected by the backend.

Implementation

Map<String, dynamic> toJson();