send method
Implementation
Future<void> send(
DataFormatVersions version, SocketConnect socketConnect) async {
try {
final json = toJson();
final jsonStr = jsonEncode(json);
socketConnect.sendData(jsonStr, version);
} catch (e, s) {
if (DDCheckPluginSetting.showLog) {
debugPrint('$e');
debugPrint("$s");
debugPrint("flutterx:Sending data to Flutterx failed");
}
}
}