addType('maxParticipants', 'integer'); $this->addType('record', 'boolean'); } public function jsonSerialize(): array { return [ 'id' => $this->id, 'uid' => $this->uid, 'name' => $this->name, 'welcome' => $this->welcome, 'maxParticipants' => (int) $this->maxParticipants, 'record' => boolval($this->record), 'access' => $this->access, 'password' => $this->password, ]; } }