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

toJson() convert #1

Open
aliyazdi75 opened this issue Sep 29, 2020 · 2 comments
Open

toJson() convert #1

aliyazdi75 opened this issue Sep 29, 2020 · 2 comments

Comments

@aliyazdi75
Copy link

Hi, thanks for your plugin.
Since serializers.serializeWith returns Object type, it would be very nice to add as Map<String, dynamic> at the end of this return serializers.serializeWith(Property.serializer, this) as Map<String, dynamic>;

@ndcollins
Copy link

Or alternatively to simply use the serializers.toJson and serializers.fromJson methods

@GiancarloCode
Copy link
Owner

Hello, I have not used built_value since version 7, the weekend I will update myself, to update the snippets, in the same way if you want to make a pull request or leave a draft of how you want them to be, it would be of great help :)

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

3 participants