toJson method

String toJson()

Implementation

String toJson() {
  return json.encode({
    "clientMsgId": clientMsgId,
    "serverMsgId": serverMsgId ?? "",
    "clientTime": clientTime,
    "serverTime": serverTime,
    "senderId": senderId,
    "senderInfo": senderInfo,
    "convId": convId,
    "atUsers": atUsers,
    "contentType": contentType,
    "content": content,
    "seq": seq,
    "options": options.toJson(),
    "offlinePush": offlinePush.toJson(),
    "ext": ext,
  });
}