@@ -20,7 +20,7 @@ class RoomConfig:
2020 """Duration (in seconds) after which the peer will be removed if it is disconnected. If not provided, this feature is disabled."""
2121 peerless_purge_timeout : Union [Unset , None , int ] = UNSET
2222 """Duration (in seconds) after which the room will be removed if no peers are connected. If not provided, this feature is disabled."""
23- room_type : Union [Unset , None , RoomConfigRoomType ] = UNSET
23+ room_type : Union [Unset , RoomConfigRoomType ] = RoomConfigRoomType . FULL_FEATURE
2424 """The use-case of the room. If not provided, this defaults to full_feature."""
2525 video_codec : Union [Unset , None , RoomConfigVideoCodec ] = UNSET
2626 """Enforces video codec for each peer in the room"""
@@ -34,9 +34,9 @@ def to_dict(self) -> Dict[str, Any]:
3434 max_peers = self .max_peers
3535 peer_disconnected_timeout = self .peer_disconnected_timeout
3636 peerless_purge_timeout = self .peerless_purge_timeout
37- room_type : Union [Unset , None , str ] = UNSET
37+ room_type : Union [Unset , str ] = UNSET
3838 if not isinstance (self .room_type , Unset ):
39- room_type = self .room_type .value if self . room_type else None
39+ room_type = self .room_type .value
4040
4141 video_codec : Union [Unset , None , str ] = UNSET
4242 if not isinstance (self .video_codec , Unset ):
@@ -73,10 +73,8 @@ def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
7373 peerless_purge_timeout = d .pop ("peerlessPurgeTimeout" , UNSET )
7474
7575 _room_type = d .pop ("roomType" , UNSET )
76- room_type : Union [Unset , None , RoomConfigRoomType ]
77- if _room_type is None :
78- room_type = None
79- elif isinstance (_room_type , Unset ):
76+ room_type : Union [Unset , RoomConfigRoomType ]
77+ if isinstance (_room_type , Unset ):
8078 room_type = UNSET
8179 else :
8280 room_type = RoomConfigRoomType (_room_type )
0 commit comments