built-value-snippets icon indicating copy to clipboard operation
built-value-snippets copied to clipboard

toJson() convert

Open aliyazdi75 opened this issue 3 years ago • 2 comments

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>;

aliyazdi75 avatar Sep 29 '20 21:09 aliyazdi75

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

ndcollins avatar Jul 06 '21 14:07 ndcollins

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 :)

GiancarloCode avatar Jul 07 '21 06:07 GiancarloCode