@VisualLab what do you think of the screenshot? :-)
A good starting point. If you can, show a screenshot of some larger fragment of the generated source code, such that the class code with fields, properties and methods is visible.
The day before yesterday I drew (in LibreOffice Draw) a rough diagram of a container for a class template and also 4 items: field, method, property, event. I gradually took into account various issues and the diagram came out a bit more complex than I initially thought (and it contains only the basics). At the moment I am implementing a container class in Lazarus, which would hold the components of the skeleton of the designed class (according to what I suggested and drew myself). For now I treat it as a kind of simple homework.