I am adding to the CustomProperties variable in ProductModel class an object of type MyClass
model.CustomProperties.add(nameof(MyClass), new MyClass() { isClass = true });
how is it possible to display the  CustomProperties in the View?

I am able to display it but I am getting 2 issues:
1- it is always taking the value as it is a string so it is been displayed as a textbox
2- When calling the post method the CustomProperties is always null.

Thank you in advance.