drift
drift copied to clipboard
Add toJson() for result class
Pleas add if it is possible to generated classes(*.g.dart) .toJson() method class MyTableItemsResult { fields ... toJson(){..return all fields in json format} }
For what do you need json serialization here? You can probably get close to this already by enabling the raw_result_set_data builder option. Then you can use QueryRow.data to get access to the underlying fields.
If you need more complex serialization features, I suggest writing your own data class and then using custom result classes.