Here’s a related thread I started last year. Quoting myself:
Yes, it was quite easy. The new [direct-wired LED] tubes came with their own “tombstones,” the sockets into which they plug at each end. I wired the four of them in a daisy chain, which was very simple, just requiring me to insert a bared wire end into a clamped slot, then connected the wires of the end socket to the mains. The old tombstones slipped out of the fixture and the new ones slipped in easily. The whole job was done in 10-15 minutes.
I had already removed the ballast, which was now superfluous.
However, as I mentioned right after that, be careful with the color temperature of our new tubes. I found the 4000K of these new tubes to be too harsh in comparison with the 3000K of all the other light sources in the room, and ended up buying a sheet of cinema gel (clear colored plastic) to match them.