nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpq3w74ajumt9wx050yq2r5h6rz95q8mmdqtvt9fl3e9u0f2ug6ht9sld240e (nprofile…240e) https://apps.kde.org/fr/umbrello/ does something like that *ish*.
Generate your classes objects in diagram class graph and then you can generate the code related.
Not perfect but can be a starting point?