I just last week had to do a fix, for the same problem with the Thetford Style II toilet in our fifth wheel. There are at least half a dozen different water valves used in the different models. We were in Orlando, connected to the campground water when my wife yelled that the toilet was over flowing. I tried everything but nothing worked. Last trip out, it had worked fine. Camping world had the needed parts, Amazon also carries the parts, si I removed the toilet from the floor, two nuts and disconnect the fresh water connection. It was much easier to work on setting on my pickup tailgate. Parts cost was less than $20 plus fuel to go buy them.
I plan to install an off-on valve in the water supply line to the toilet, so if it happens again, we can still have water in the shower and kitchen.