Former Dodgers designated hitter J.D. Martinez is taking a role in the New York Mets front office, signaling an end to his playing days.