setRoomAttributes method

Future<Map> setRoomAttributes(
  1. Map roomAttributes,
  2. String roomID,
  3. dynamic config
)

Implementation

Future<Map<dynamic, dynamic>> setRoomAttributes(
    Map roomAttributes, String roomID, dynamic config) async {
  Object _config = mapToJSObj(config);

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

  return jsObjectToMap(result);
}