Converts the object to a JSON-compatible Map representation.
@returns A map containing the object's properties as key-value pairs.
Map<String, dynamic> toMap();