(CNN) A federal judge has dismissed adult film star Stormy Daniels' defamation lawsuit against President Donald Trump.

Daniels sued Trump after he said in a tweet that her story of a man threatening her not to come forward with her story of her alleged affair with Trump was "a total con job."

A sketch years later about a nonexistent man. A total con job, playing the Fake News Media for Fools (but they know it)! https://t.co/9Is7mHBFda — Donald J. Trump (@realDonaldTrump) April 18, 2018

Daniels argued Trump's tweet, posted April 18, "attacks the veracity of her account" of the incident and that Trump's statement was "false and defamatory, and that the tweet was defamation ... because it charged her with committing a serious crime," District Judge S. James Otero wrote in his opinion Monday.

Trump had asked Otero to dismiss the lawsuit.

"The Court agrees with Mr. Trump's argument because the tweet in question constitutes 'rhetorical hyperbole' normally associated with politics and public discourse in the United States. The First Amendment protects this type of rhetorical statement," Otero wrote.

Read More