addType('maxParticipants', 'integer'); $this->addType('record', 'boolean'); $this->addType('everyoneIsModerator', '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), ]; } }