https://github.com/linksplatform/Interfaces/blob/6c1408ecfb63e1e29059e0807630ef44b7d1b99c/cpp/Platform.Interfaces/IDictionary.h#L8 This is what a small hack looks like You need to define readonly models that use only const methods