initRobotData method

dynamic initRobotData()

Implementation

initRobotData() {
  var mapData = json.decode(widget.message.customElem!.data!);
  mapData["robotID"] = widget.message.sender ?? "";
  mapData["msgID"] = widget.message.msgID ?? "";

  robotData = TencentCloudChatRobotData.fromJson(mapData);
}