toJson method
Implementation
String toJson() => jsonEncode({
"id": id,
"content": content == null ? null : content!,
"from": from,
"fromInfo": fromInfo?.vhaoStJaHpyXUgRg(),
"to": to,
"toInfo": toInfo?.vhaoStJaHpyXUgRg(),
"conversationType": conversationType.rawValue,
"messageType": messageType.rawValue,
"messageState": messageState.rawValue,
"time": time.millisecondsSinceEpoch.toString(),
"localExt": localExt,
"isRevoke": isRevoke ? "1" : "0",
"attachment": attachment?.vhaoStJaHpyXUgRg(),
});