3declare(strict_types=1);
139 if (is_null($this->name)) {
141 $data = $this->
raw(self::FIELD_NAME);
142 if (is_null($data)) {
146 $this->name = LocalizedStringModel::of($data);
162 if (is_null($this->slug)) {
164 $data = $this->
raw(self::FIELD_SLUG);
165 if (is_null($data)) {
169 $this->slug = LocalizedStringModel::of($data);
183 if (is_null($this->description)) {
185 $data = $this->
raw(self::FIELD_DESCRIPTION);
186 if (is_null($data)) {
190 $this->description = LocalizedStringModel::of($data);
205 if (is_null($this->parent)) {
207 $data = $this->
raw(self::FIELD_PARENT);
208 if (is_null($data)) {
227 if (is_null($this->orderHint)) {
229 $data = $this->
raw(self::FIELD_ORDER_HINT);
230 if (is_null($data)) {
233 $this->orderHint = (string) $data;
247 if (is_null($this->externalId)) {
249 $data = $this->
raw(self::FIELD_EXTERNAL_ID);
250 if (is_null($data)) {
253 $this->externalId = (string) $data;
267 if (is_null($this->metaTitle)) {
269 $data = $this->
raw(self::FIELD_META_TITLE);
270 if (is_null($data)) {
274 $this->metaTitle = LocalizedStringModel::of($data);
288 if (is_null($this->metaDescription)) {
290 $data = $this->
raw(self::FIELD_META_DESCRIPTION);
291 if (is_null($data)) {
295 $this->metaDescription = LocalizedStringModel::of($data);
309 if (is_null($this->metaKeywords)) {
311 $data = $this->
raw(self::FIELD_META_KEYWORDS);
312 if (is_null($data)) {
316 $this->metaKeywords = LocalizedStringModel::of($data);
330 if (is_null($this->custom)) {
332 $data = $this->
raw(self::FIELD_CUSTOM);
333 if (is_null($data)) {
337 $this->custom = CustomFieldsDraftModel::of($data);
351 if (is_null($this->assets)) {
353 $data = $this->
raw(self::FIELD_ASSETS);
354 if (is_null($data)) {
357 $this->assets = AssetDraftCollection::fromArray($data);
372 if (is_null($this->key)) {
374 $data = $this->
raw(self::FIELD_KEY);
375 if (is_null($data)) {
378 $this->key = (string) $data;