-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: enable to json for every serializable model #213
Conversation
@KRTirtho that's a useful feature! Could you check the CI build for any errors? |
I think I/we have removed it to lower the warnings and better our dart analyzer score regarding unused code. Of course we can always revisit this topic. Currently I have no hard feelings regarding toJson or not toJson. |
@rinukkusu is it possible to somehow "configure" whether a |
Sorry for the late reply. I'll fix the CI issues asap. (Forgot to add
As far as I know, if unused methods are not private, it shouldn't decrease pub performance score. Because libraries are supposed to offer methods to the user which can unused by the library itself. |
Btw, in case you forgot to check, I fixed the CI issues 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from what I can tell! Thanks for contributing!
@KRTirtho released with |
That's great news 🎉 But, we have a issue with As you can see,
Adding following in targets:
$default:
builders:
json_serializable:
options:
any_map: true
explicit_to_json: true I'll create a PR with the simple fix. Sorry for the trouble, I didn't know this issue until I used Hive to cache some responses. |
Closes #212