[Event] Add debugprint
This commit is contained in:
parent
b4f0094542
commit
c96d2af354
|
@ -66,6 +66,7 @@ class RawEvent {
|
|||
this.room});
|
||||
|
||||
static Map<String, dynamic> getMapFromPayload(dynamic payload) {
|
||||
print("getMapFromPayload: $payload");
|
||||
if (payload is String) return json.decode(payload);
|
||||
if (payload is Map<String, dynamic>) return payload;
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue