3declare(strict_types=1);
143 if (is_null($this->
id)) {
145 $data = $this->
raw(self::FIELD_ID);
146 if (is_null($data)) {
149 $this->
id = (string) $data;
163 if (is_null($this->version)) {
165 $data = $this->
raw(self::FIELD_VERSION);
166 if (is_null($data)) {
169 $this->version = (int) $data;
183 if (is_null($this->createdAt)) {
185 $data = $this->
raw(self::FIELD_CREATED_AT);
186 if (is_null($data)) {
189 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
190 if (
false === $data) {
193 $this->createdAt = $data;
207 if (is_null($this->lastModifiedAt)) {
209 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
210 if (is_null($data)) {
213 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
214 if (
false === $data) {
217 $this->lastModifiedAt = $data;
231 if (is_null($this->lastModifiedBy)) {
233 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
234 if (is_null($data)) {
238 $this->lastModifiedBy = LastModifiedByModel::of($data);
252 if (is_null($this->createdBy)) {
254 $data = $this->
raw(self::FIELD_CREATED_BY);
255 if (is_null($data)) {
259 $this->createdBy = CreatedByModel::of($data);
273 if (is_null($this->key)) {
275 $data = $this->
raw(self::FIELD_KEY);
276 if (is_null($data)) {
279 $this->key = (string) $data;
293 if (is_null($this->name)) {
295 $data = $this->
raw(self::FIELD_NAME);
296 if (is_null($data)) {
300 $this->name = LocalizedStringModel::of($data);
314 if (is_null($this->description)) {
316 $data = $this->
raw(self::FIELD_DESCRIPTION);
317 if (is_null($data)) {
321 $this->description = LocalizedStringModel::of($data);
335 if (is_null($this->authenticationMode)) {
337 $data = $this->
raw(self::FIELD_AUTHENTICATION_MODE);
338 if (is_null($data)) {
341 $this->authenticationMode = (string) $data;
355 if (is_null($this->state)) {
357 $data = $this->
raw(self::FIELD_STATE);
358 if (is_null($data)) {
361 $this->state = (string) $data;
375 if (is_null($this->mcpServer)) {
377 $data = $this->
raw(self::FIELD_MCP_SERVER);
378 if (is_null($data)) {
382 $this->mcpServer = $className::of($data);
486 #[\ReturnTypeWillChange]
497 return (
object) $data;