inviteUsersIntoGroup method

Future<Map> inviteUsersIntoGroup(
  1. dynamic userIDs,
  2. String groupID
)

Implementation

Future<Map<dynamic, dynamic>> inviteUsersIntoGroup(
    dynamic userIDs, String groupID) async {
  final result = await promiseToFuture(
          ZIM.getInstance()!.inviteUsersIntoGroup(userIDs, groupID))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  Map resultMap = jsObjectToMap(result);

  return resultMap;
}