encode method

  1. @override
String encode()
override

Implementation

@override
String encode() {
  Map map = {
    "mOperatorId": this.mOperatorId,
    "mRecallTime": this.mRecallTime,
    "mOriginalObjectName": this.mOriginalObjectName,
    "mAdmin": this.mAdmin,
    "mDelete": this.mDelete,
    "recallContent": this.recallContent,
  };

  if (this.recallActionTime != null) {
    map["recallActionTime"] = this.recallActionTime;
  }
  if (this.sendUserInfo != null) {
    Map userMap = super.encodeUserInfo(this.sendUserInfo);
    map["user"] = userMap;
  } else {
    map["user"] = [];
  }
  if (this.mentionedInfo != null) {
    Map mentionedMap = super.encodeMentionedInfo(this.mentionedInfo);
    map["mentionedInfo"] = mentionedMap;
  }
  return json.encode(map);
}