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