We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7676a1d + 83c687a commit 7956a6dCopy full SHA for 7956a6d
lib/core/models/notifications.dart
@@ -72,6 +72,7 @@ class Audience {
72
}
73
74
class Message {
75
+
76
String message;
77
String title;
78
Data data;
@@ -83,8 +84,9 @@ class Message {
83
84
});
85
86
Message.fromJson(Map<String, dynamic> json)
- : message = json["message"],
87
- title = json["title"],
+ // Defaulting to empty strings until we figure out what should or should not be null on the backend
88
+ : message = json["message"] ?? "",
89
+ title = json["title"] ?? "",
90
data = Data.fromJson(json["data"]);
91
92
Map<String, dynamic> toJson() => {
0 commit comments