You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any reason why we cannot annotate a private class and have json_serializable generate the public class? This private class would generate the above public class. The benefit would be less boilerplate. The private class would implemented by the public class.
Agreed!! Going through having to manually type a toJson and fromJson method for all of my redux actions is really annoying when the generator could just as easily be generating them for me!
If there was an extra parameter in the annotation like generatePublicMethods:bool that'd be awesome
Uh oh!
There was an error while loading. Please reload this page.
Currently we annotate a public class and the backing to/from json classes are generated.
Is there any reason why we cannot annotate a private class and have
json_serializable
generate the public class? This private class would generate the above public class. The benefit would be less boilerplate. The private class would implemented by the public class.The text was updated successfully, but these errors were encountered: