convertMessageToJson static method

Future<NIMResult<String>> convertMessageToJson(
  1. {required NIMMessage message}
)

NIMMessage转换为json

Implementation

static Future<NIMResult<String>> convertMessageToJson(
    {required NIMMessage message}) async {
  return NimCore.instance.messageService._convertMessageToJson(message);
}