Joseph and donc13 are offering good advise. Misdiagnosis happens all the time with everything in life. If you can, take the rig to another repair center and see what they determine.
The Onan generator not starting is a common problem discussed on other RV forums. I never read any posts referencing the magneto. That is the only reason why I would question the diagnosis.
The obvious question is: How much gas was in your fuel tank at the time the generator stopped? Maybe when driving in the hills, the fuel sloshed to one side, preventing the fuel from being sucked-up. The fuel cut-off is supposed to be 1/4 full, but on a slope, it could change. On our PC, the fuel cut-off is a bit above 1/4 full, and I don't know if it is affected when on a slope.
The Onan's fuel pump would be the next thing to check which anyone can do. With everything very quiet, prime the generator by holding the start button in the opposite direction. You should hear a humm or buzz. If you don't hear anything, get someone with good hearing to crawl under the generator and listen while you prime. There is duplicate start-with-prime button on the generator itself so you can check to see if the fuel pump is working by yourself.
One more thing to check. There is a circuit breaker next to the start button on the generator itself. Check that too. Make sure it has not tripped on you. I don't recall if tripped that it prevents the generator from starting, or it runs but won't generate electricity.