Skip to content

Commit

Permalink
Merge pull request #2102 from morebytes/fix_free_food_prod_bug_patch
Browse files Browse the repository at this point in the history
Fix free food PROD bug
  • Loading branch information
morebytes authored Dec 3, 2024
2 parents 7676a1d + 83c687a commit 7956a6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/core/models/notifications.dart
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ class Audience {
}

class Message {

String message;
String title;
Data data;
Expand All @@ -83,8 +84,9 @@ class Message {
});

Message.fromJson(Map<String, dynamic> json)
: message = json["message"],
title = json["title"],
// Defaulting to empty strings until we figure out what should or should not be null on the backend
: message = json["message"] ?? "",
title = json["title"] ?? "",
data = Data.fromJson(json["data"]);

Map<String, dynamic> toJson() => {
Expand Down

0 comments on commit 7956a6d

Please sign in to comment.