Have a look at the old, non-functioning boiler. One of the pipes underneath it will be the gas supply pipe. It may already be 22 mm. If not, follow it back to the floor and see if it is joined to a 22 mm pipe.
Far from guaranteed but it's most likely that the supply to the flat is 22 mm, and the cooker has been tee'd off in 15 mm.
Far from guaranteed but it's most likely that the supply to the flat is 22 mm, and the cooker has been tee'd off in 15 mm.