Closed damywise closed 2 months ago
Thanks for opening up an issue. will fix this shortly.
@damywise should be fix. please update your cli to 1.5.7 https://github.com/mmvergara/supadart/pull/68 please let me know if you're still having problems, thanks again
Can confirm it's fixed thanks
Hi, thanks for this great package. It's been very helpful for my project.
I encountered an issue with parsing
num
on version 1.5.6It generates
Which results in errors like
Unhandled Exception: type 'double' is not a subtype of type 'String'
Unhandled Exception: type 'int' is not a subtype of type 'String'
So to fix it I added
toString()
after the json[key]:I'm guessing the problem is somewhere in this line https://github.com/mmvergara/supadart/blob/f2d03975d325c5a833f5b33e20ab2352ddf4f6e1/cli/lib/generators/class/from_json.dart#L59