Custom models can be used if none of the models provided by OpenUI5 is suitable for the specific needs of an application.
To instantiate a custom model, proceed as follows:
You can find all necessary classes in the sap.ui.model namespace.
As a starting point, take a look at the JSONModel implementation in sap.ui.model.json.JSONModel.