-
Notifications
You must be signed in to change notification settings - Fork 403
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
Bug when using @JsonSerializable(createFactory: false)
on an Equatable
class.
#1348
Comments
You can use
|
Yeah but thats just a workaround. When generating both |
When using this package to generate |
Exactly but why is it done this way? |
I had to pick a default when I started. Seemed reasonable 🤷 |
Makes sence to start this way, but would you agree that |
Reading the comment from @BarteeX-Q it sounds like this is expected behaviour, but having an option I agree with @jtdLab, they should be the same, in my opinion. Including the |
I spent half a day trying to find out what the problem was. |
@kevmoo I too feel having different core behaviour for one param It looks like bug to me as well. |
Using
json_serializable: ^6.7.1
on a model class which extendsEquatable
leads to unwanted fields being included in generated code.Given:
the output is
with multiple unwanted fields being included in the json output.
Hint: When using
@JsonSerializable()
or@JsonSerializable(createToJson: false)
all works as expected.The text was updated successfully, but these errors were encountered: