content, true); return is_array($decoded) ? $decoded : null; } public function toArray(): array { return [ 'id' => $this->id, 'type' => $this->type, 'name' => $this->name, 'slug' => $this->slug, 'description' => $this->description, 'content' => $this->content, 'version' => $this->version, 'status' => $this->status, 'parent_id' => $this->parentId, 'parent_name' => $this->parentName, 'created_at' => $this->createdAt, 'updated_at' => $this->updatedAt, ]; } }