public function deadline($deadline = null) 
    {
        $ts = $deadline ?: $this->getAttribute("deadline");
        if (is_integer($ts) || $ts instanceof TimeWindow) {
            return new TimeWindow(["timeStamp" => $ts]);
        }

        return new TimeWindow();
    }