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