$raw */ public function __construct(array $raw) { parent::__construct($raw); $this->anonymizerConfidence = $raw['anonymizer_confidence'] ?? null; $this->networkLastSeen = $raw['network_last_seen'] ?? null; $this->providerName = $raw['provider_name'] ?? null; } /** * @return array|null */ public function jsonSerialize(): ?array { $js = parent::jsonSerialize(); if ($this->anonymizerConfidence !== null) { $js['anonymizer_confidence'] = $this->anonymizerConfidence; } if ($this->networkLastSeen !== null) { $js['network_last_seen'] = $this->networkLastSeen; } if ($this->providerName !== null) { $js['provider_name'] = $this->providerName; } return $js; } }