deleteMessages method

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

Implementation

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

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

  return jsObjectToMap(result);
}