addType('maxRooms', 'integer'); $this->addType('maxParticipants', 'integer'); $this->addType('allowRecording', 'boolean'); } public function setGroupName(?string $groupName) { $this->groupName = $groupName ?? ''; } public function jsonSerialize(): array { return [ 'id' => $this->id, 'groupId' => $this->groupId, 'groupName' => $this->groupName, 'maxRooms' => (int) $this->maxRooms, 'roomTypes' => \json_decode($this->roomTypes), 'maxParticipants' => (int) $this->maxParticipants, 'allowRecording' => boolval($this->allowRecording), ]; } }