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
BuyMyBeard
changed the title
Freezed union toJson doesn't include unionKey with a single factory constructor
Freezed union toJson doesn't include unionKey with a single subclass
Jan 14, 2025
Describe the bug
Whenever a sealed class only has a single subclass, it won't add the union key to the toJson.
To Reproduce
Expected behavior
If the class is declared as a Sealed class, it automatically adds the union key with toJson, even if it possesses a single subclass.
The text was updated successfully, but these errors were encountered: