One of the top starters in this year’s free-agent class — and a potential fit for the Mets’ rotation — is off the market.

Nick Martinez agreed to a two-year, $44 million deal with the White Sox on Saturday, The Post’s Jon Heyman reported.

The 36-year-old righty will be a front-of-the-rotation starter in Chicago after helping the Rays reach the World Series this season.

Martinez, a Fordham University alum, went 15-6 with a 3.10 ERA last season and was one of the names mentioned as a possible add by the Mets after the club signed Tarik Skubal to a record nine-year, $450 million pact .

Read the full article at NYPOST.COM