decode method
void
decode(
- String? jsonStr
)
override
Implementation
@override
void decode(String? jsonStr) {
if (jsonStr == null && jsonStr!.isEmpty) {
developer.log("Flutter ChatroomKVNotificationMessage deocde error: no content", name: "RongIMClient.ChatroomKVNotificationMessage");
return;
}
Map map = json.decode(jsonStr.toString());
this.type = map["type"];
this.key = map["key"];
this.value = map["value"];
this.extra = map["extra"];
Map? userMap = map["user"];
super.decodeUserInfo(userMap);
Map? menthionedMap = map["mentionedInfo"];
super.decodeMentionedInfo(menthionedMap);
}