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