decode method

  1. @override
void decode(
  1. String? jsonStr
)
override

Implementation

@override
void decode(String? jsonStr) {
  if (jsonStr == null || jsonStr == "") {
    developer.log("Flutter CombineMessage deocde error: no content", name: "RongIMClient.CombineMessage");
    return;
  }
  Map map = json.decode(jsonStr);
  this.title = map["title"];
  this.mName = map["name"];
  this.mMediaUrl = map["remoteUrl"];
  this.localPath = map["localPath"];
  this.conversationType = map["conversationType"];
  if (map["nameList"] != null) {
    this.nameList = List<String>.from(map["nameList"]);
  } else {
    this.nameList = [];
  }

  this.summaryList = List<String>.from(map["summaryList"]);
  this.extra = map["extra"];
  Map? userMap = map["user"];
  super.decodeUserInfo(userMap);
  Map? menthionedMap = map["mentionedInfo"];
  super.decodeMentionedInfo(menthionedMap);
  this.destructDuration = map["burnDuration"];
}