Persistence (save option) for zero-touch nodes [?]

Hello! I would like to know if there is a way to create our own zero-touch nodes which can save input data after closing and saving Dynamo?
Like Slider component saves the value which is set on, OR codeblock component saves the code.

Thank you for your help in advance!

You can’t do this with ZT, but you can use write an explicit nodemodel node.

(this example is just a simple nodeModel)

If you add a public property to a nodeModel it will be serialized if it’s something newtonsoft json can serialize easily.