We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Other
No response
Android
0.37.0
In 0.37.0, all fields of PushNotification were made optional. But despite this change, PushNotifications.fromJson fails when no devices are present.
PushNotification
PushNotifications.fromJson
It should be possible to use fromJson on Json from toJson, but this throws an exception:
fromJson
toJson
final PushNotification notification = PushNotification.fromJson(PushNotification().toJson());
Minimal reproduction:
final PushNotification notification = PushNotification.fromJson({});
Expected result: Get a PushNotification with all fields set to null. Actual result: An exception is thrown.
type 'Null' is not a subtype of type 'String' in type cast
The text was updated successfully, but these errors were encountered:
krille-chan
Successfully merging a pull request may close this issue.
Checklist
In which Project did the bug appear?
Other
If you selected "Other" as Project, please enter in which project the bug occurred.
No response
On which platform did the bug appear?
Android
SDK Version
0.37.0
Describe the problem caused by this bug
In 0.37.0, all fields of
PushNotification
were made optional. But despite this change,PushNotifications.fromJson
fails when no devices are present.It should be possible to use
fromJson
on Json fromtoJson
, but this throws an exception:final PushNotification notification = PushNotification.fromJson(PushNotification().toJson());
Steps To Reproduce
Minimal reproduction:
Expected result: Get a
PushNotification
with all fields set to null.Actual result: An exception is thrown.
Screenshots or Logs
type 'Null' is not a subtype of type 'String' in type cast
Security related
No response
The text was updated successfully, but these errors were encountered: