How can I instantiate an object using the string variable className and also pass in the constructor parameters as named pairs? (I don't want the parameters to be order dependent, and I don't want to pass them in as objects and have to cast them to their original class)
string className = "ExternalApi";
Integration integration = getIntegrationObject();
Logger logger = new Logger();
// how to do new ExternalApi(integration:integration, logger:logger)