deleteAllMessage method

Future<Map> deleteAllMessage(
  1. String conversationID,
  2. dynamic conversationType,
  3. dynamic config
)

Implementation

Future<Map<dynamic, dynamic>> deleteAllMessage(
    String conversationID, dynamic conversationType, dynamic config) async {
  Object _config = mapToJSObj(config);

  final result = await promiseToFuture(ZIM
          .getInstance()!
          .deleteAllMessage(conversationID, conversationType, _config))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}