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
iamarnas
changed the title
[BUG] The annotation 'JsonKey' can only be used on fields or getters dart(invalid_annotation_target)
The annotation 'JsonKey' can only be used on fields or getters dart (invalid_annotation_target)
Feb 12, 2022
Is there an existing issue for this?
Current Behavior
Models created that contain a JsonKey produce the following lint warning.
This is fixed by adding
To the top of the file.
Expected Behavior
No lint warning
Steps To Reproduce
Version
Relevant JSON syntax
Anything else?
No response
The text was updated successfully, but these errors were encountered: