Skip to content
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

Uses deprecated @JsonKey(ignore: true) annotation for copyWith and hashCode #1043

Closed
lrsvmb opened this issue Mar 4, 2024 · 1 comment · Fixed by #1104
Closed

Uses deprecated @JsonKey(ignore: true) annotation for copyWith and hashCode #1043

lrsvmb opened this issue Mar 4, 2024 · 1 comment · Fixed by #1104
Assignees
Labels
bug Something isn't working

Comments

@lrsvmb
Copy link
Contributor

lrsvmb commented Mar 4, 2024

When generating serializable classes, freezed uses the deprecated @JsonKey(ignore: true) on copyWith and hashCode. This has been deprecated since json_serializable: ^6.6.0 and I suggest updating to the most recent way :
@JsonKey(includeFromJson: false, includeToJson: false)

@lrsvmb lrsvmb added bug Something isn't working needs triage labels Mar 4, 2024
@rrousselGit
Copy link
Owner

Fancy making a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants