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