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
This is not an answer but in your pubspec.yaml, you put json_serializable under dev_dependencies instead of dependencies
However in the installation section it says json_serializable should be under dependencies https://pub.dev/packages/json_serializable/install
Does it make any difference? What is the correct convention? Some clarification would be highly appreciated.
Thanks
Given the following class:
I would expect the generated serializer to only include
x
. However, this is the produced function:Also serializing
y
.y
disappears if we change the annotation toincludeFromJson: false
.I believe the culprit is this line:
json_serializable.dart/json_serializable/lib/src/generator_helper.dart
Line 154 in 832fc7b
It should test for
includeToJson == false
.Environment:
The text was updated successfully, but these errors were encountered: