setRoomMembersAttributes method

Future<Map> setRoomMembersAttributes(
  1. Map attributes,
  2. String roomID,
  3. dynamic userIDs,
  4. dynamic config,
)

Implementation

Future<Map<dynamic, dynamic>> setRoomMembersAttributes(
    Map attributes, String roomID, dynamic userIDs, dynamic config) async {
  final _attributes = mapToJSObj(attributes);
  final _config = mapToJSObj(config);

  final result = await promiseToFuture(ZIM
          .getInstance()!
          .setRoomMembersAttributes(_attributes, userIDs, roomID, _config))
      .catchError((e) {
    throw PlatformException(code: e.code.toString(), message: e.message);
  });

  return jsObjectToMap(result);
}