decode method
void
decode(
- String? jsonStr
)
override
Implementation
@override
void decode(String? jsonStr) {
if (jsonStr == null) {
developer.log("Flutter TextMessage deocde error: no content", name: "RongIMClient.RichContentMessage");
return;
}
Map map = json.decode(jsonStr.toString());
this.imageURL = map["imageUri"];
this.extra = map["extra"];
this.digest = map["content"];
this.title = map["title"];
this.url = map["url"];
Map? userMap = map["user"];
super.decodeUserInfo(userMap);
Map? menthionedMap = map["mentionedInfo"];
super.decodeMentionedInfo(menthionedMap);
// this.destructDuration = map["burnDuration"];
}