Completely different.
The 77 & 78 are the same the 79 was unique. It uses the same shaped cases as the 78/79 250 but the crank, cyclinder & pistons are a one off. The IT425 uses the same crank. YZ then went to 465. Different cases again.
Some parts are interchangeable but not many.
That said you should be able to make it fit relatively easily but why would you? The 77/78 400 were just as good. (For most riders)