private static function _dateTime(&$json, $str)
    {
        try {
            return new \DateTime($str);
        } catch (\Exception $ex) {
            throw new UnexpectedResponseException($ex->getMessage(), $json);
        }
    }