addType('maxParticipants', 'integer'); $this->addType('record', 'boolean'); $this->addType('everyoneIsModerator', 'boolean'); $this->addType('requireModerator', 'boolean'); $this->addType('shared', 'boolean'); $this->addType('listenOnly', 'boolean'); $this->addType('mediaCheck', 'boolean'); $this->addType('cleanLayout', 'boolean'); $this->addType('joinMuted', 'boolean'); $this->addType('running', 'boolean'); } public function jsonSerialize(): array { return [ 'id' => $this->id, 'uid' => $this->uid, 'userId' => $this->userId, 'name' => $this->name, 'welcome' => $this->welcome, 'maxParticipants' => (int) $this->maxParticipants, 'record' => boolval($this->record), 'access' => $this->access, 'password' => $this->password, 'everyoneIsModerator' => boolval($this->everyoneIsModerator), 'requireModerator' => boolval($this->requireModerator), 'shared' => boolval($this->shared), 'moderatorToken' => $this->moderatorToken, 'listenOnly' => boolval($this->listenOnly), 'mediaCheck' => boolval($this->mediaCheck), 'cleanLayout' => boolval($this->cleanLayout), 'joinMuted' => boolval($this->joinMuted), 'running' => boolval($this->running), ]; } }