hellohello234
Version:
Simple calculator API hosted on APIMATIC
28 lines (22 loc) • 542 B
JavaScript
/**
* hellohello234
*
* This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io )
*/
'use strict';
const classMap = {
};
/**
* Factory class to create instances of models and exception classes
*/
class ModelFactory {
/**
* Creates instance of a model class
* @param modelName {string} Name of class to instantiate
* @returns {object} Instance of the model class
*/
static getInstance(modelName) {
return new classMap[modelName]();
}
}
module.exports = ModelFactory;