New York (CNN) Lawyers representing the Trump Foundation are asking for the New York attorney general's lawsuit against it to be dismissed.

Attorney Alan Futerfas said in a court filing Thursday that the foundation acted legally and did not violate its non-profit status by contributing to or advocating for the Trump campaign.

The defendants in the case -- Donald Trump; his children Donald, Ivanka and Eric;and the Donald J. Trump Foundation -- argue the suit was the product of "pervasive bias" on the part of former New York Attorney General Eric Schneiderman and is without merit. They moved to dismiss the case in a motion filed in the New York Supreme Court.

"The NYAG himself -- the head of the entity that brought this Petition -- solicited financial donations to his own campaign for re-election based on his promise to 'lead the resistance' and attack the President and his policies, describing the President as out to 'hurt' New Yorkers. The NYAG, as an entity, has issued scores of press releases trumpeting its fight against the President as evidence of its reason d'etre (sic) and its success as an agency."

Futerfas also writes, "the record leaves no doubt that the lead investigator of Mr. Trump was an open and notorious adversary of Mr. Trump, and his office shared and continued that posture."

Read More