3declare(strict_types=1);
119 if (is_null($this->
id)) {
121 $data = $this->
raw(self::FIELD_ID);
122 if (is_null($data)) {
125 $this->
id = (string) $data;
139 if (is_null($this->version)) {
141 $data = $this->
raw(self::FIELD_VERSION);
142 if (is_null($data)) {
145 $this->version = (int) $data;
159 if (is_null($this->createdAt)) {
161 $data = $this->
raw(self::FIELD_CREATED_AT);
162 if (is_null($data)) {
165 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
166 if (
false === $data) {
169 $this->createdAt = $data;
183 if (is_null($this->lastModifiedAt)) {
185 $data = $this->
raw(self::FIELD_LAST_MODIFIED_AT);
186 if (is_null($data)) {
189 $data = DateTimeImmutable::createFromFormat(MapperFactory::DATETIME_FORMAT, $data);
190 if (
false === $data) {
193 $this->lastModifiedAt = $data;
207 if (is_null($this->lastModifiedBy)) {
209 $data = $this->
raw(self::FIELD_LAST_MODIFIED_BY);
210 if (is_null($data)) {
214 $this->lastModifiedBy = LastModifiedByModel::of($data);
228 if (is_null($this->createdBy)) {
230 $data = $this->
raw(self::FIELD_CREATED_BY);
231 if (is_null($data)) {
235 $this->createdBy = CreatedByModel::of($data);
249 if (is_null($this->key)) {
251 $data = $this->
raw(self::FIELD_KEY);
252 if (is_null($data)) {
255 $this->key = (string) $data;
269 if (is_null($this->name)) {
271 $data = $this->
raw(self::FIELD_NAME);
272 if (is_null($data)) {
275 $this->name = (string) $data;
289 if (is_null($this->custom)) {
291 $data = $this->
raw(self::FIELD_CUSTOM);
292 if (is_null($data)) {
296 $this->custom = CustomFieldsModel::of($data);
376 #[\ReturnTypeWillChange]
387 return (
object) $data;