Skip to content
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

JSON Serialization of IMap Keys #26

Closed
TimWhiting opened this issue Sep 29, 2021 · 1 comment
Closed

JSON Serialization of IMap Keys #26

TimWhiting opened this issue Sep 29, 2021 · 1 comment

Comments

@TimWhiting
Copy link
Contributor

TimWhiting commented Sep 29, 2021

Because this uses toJsonK and fromJsonK, non-String keys don't automatically get converted to Strings in the toJson map output, and also don't get converted back from Strings in fromJson.

PR #25 is a temporary solution until json_serializable can detect and handle these cases.

Here is the json_serializable issue
google/json_serializable.dart#396

@marcglasberg
Copy link
Owner

Fixed in version 7.0.6-dev0

Thanks for the PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants