public function query(DateTime $fromTime, DateTime $toTime = null): array
    {
        $options = ['query' => ['fromTime' => $fromTime->getTimestamp()]];
        if ($toTime !== null) {
            $options['query']['toTime'] = $toTime->getTimestamp();
        }

        $json = $this->parent->performAPICallWithJsonResponse('get', '/updated/query', $options);
        return DataParser::parseDataArray($json, UpdateInfo::class);
    }