If it's already a flat tire, you can't convert a 20-inch wheel hub into a 22-inch one. If the flatness of the original tire is above 65, there is room to change it to 22. But after 22 rounds, you need to use very flat tires.
As for how flat the modified tire needs, this needs to be calculated. The principle is that the tire diameter remains basically unchanged before and after modification.