startChatbot method

Future<String> startChatbot(
  1. String botId,
  2. Map<String, String>? meta
)

Implementation

Future<String> startChatbot(String botId,Map<String ,String>? meta) async {
  // final Map<String, dynamic> jsonMap = json.decode(meta);
  // final UserModel user = UserModel.fromJson(jsonMap);
  String isBotStarted = await methodChannel.invokeMethod('startChatbot', {"botId": botId,"meta": meta});

  return isBotStarted;

}