public static function fromXml(\DOMNodeList $xml)
    {
        $value = null;
        if ($xml->length > 0) {
            $value = new \DateTimeImmutable($xml->item(0)->textContent);
        }
        return new static($value);
    }