mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 00:05:16 +00:00
Update code
This commit is contained in:
@ -21,7 +21,7 @@ class WsMessage {
|
||||
|
||||
/// Construct a message from a JSON document (messages coming from the server)
|
||||
static WsMessage fromJSON(final Map<dynamic, dynamic> m) {
|
||||
return WsMessage(id: m["id"], title: m["title"], data: m["data"]);
|
||||
return WsMessage(id: m["id"] ?? "", title: m["title"], data: m["data"]);
|
||||
}
|
||||
|
||||
/// Turn a message into a JSON object to send it to the API
|
||||
|
Reference in New Issue
Block a user