decode method
void
decode(
- String? jsonStr
)
override
Implementation
@override
void decode(String? jsonStr) {
if (jsonStr == null || jsonStr.isEmpty) {
developer.log("Flutter RecallNotificationMessage deocde error: no content", name: "RongIMClient.RecallNotificationMessage");
return;
}
Map map = json.decode(jsonStr.toString());
this.mOperatorId = map["operatorId"];
this.mRecallTime = map["recallTime"];
this.mOriginalObjectName = map["originalObjectName"];
this.mAdmin = map["admin"];
this.mDelete = map["delete"];
this.recallContent = map["recallContent"];
this.recallActionTime = map["recallActionTime"] != null ? map["recallActionTime"] : 0;
Map? userMap = map["user"];
super.decodeUserInfo(userMap);
Map? menthionedMap = map["mentionedInfo"];
super.decodeMentionedInfo(menthionedMap);
}