4Q-s-r-o / signature

Flutter plugin that creates a canvas for writing down a signature
MIT License
252 stars 83 forks source link

toJson: Converting object to an encodable object failed: Instance of 'Point' #98

Closed freddirkse closed 4 months ago

freddirkse commented 8 months ago

Looking for any tips on Json serializing the points to save in a database.

Currently attempts throw the error: Converting object to an encodable object failed: Instance of 'Point'

DiegoLimeiradaSilva commented 7 months ago

Good afternoon, I also need to save the Points in json, any progress?

freddirkse commented 7 months ago

Good afternoon, I also need to save the Points in json, any progress?

Sadly no. Nobody seems to be paying any attention to this project, so I found a different solution and moved on.

DiegoLimeiradaSilva commented 7 months ago

thanks

MartinHlavna commented 4 months ago

Hello, we regularly check issue, but we have limited time budget for support, so we check and clean issues only a few times a year.

To answer question, json serialization in dart is tricky. toJson method cannot work with any object. For now, you have to convert it to map manually.