encode method
Implementation
@override
String encode() {
Map map = {"title": title, "name": mName, "localPath": localPath, "remoteUrl": mMediaUrl, "extra": extra, "conversationType": conversationType, "nameList": nameList, "summaryList": summaryList};
if (this.sendUserInfo != null) {
Map userMap = super.encodeUserInfo(this.sendUserInfo);
map["user"] = userMap;
}
if (this.mentionedInfo != null) {
Map mentionedMap = super.encodeMentionedInfo(this.mentionedInfo);
map["mentionedInfo"] = mentionedMap;
}
if (this.destructDuration != null && this.destructDuration! > 0) {
map["burnDuration"] = this.destructDuration;
}
return json.encode(map);
}