GiancarloCode / built-value-snippets

VSCode extension and IntelliJ plugin with snippets for built_value package.
15 stars 6 forks source link

toJson() convert #1

Open aliyazdi75 opened 3 years ago

aliyazdi75 commented 3 years ago

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 commented 3 years ago

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

GiancarloCode commented 3 years ago

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