setGroupMemberRole method

Future<Map> setGroupMemberRole(
  1. int role,
  2. String forUserID,
  3. String groupID
)

Implementation

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

  return jsObjectToMap(result);
}