Any person who willfully violates the terms of an injunction or declaratory judgment of the court or the terms of a written assurance of voluntary compliance entered into pursuant to the Uniform Deceptive Trade Practices Act shall be guilty of a Class IV felony.