API Reference > imodeljs-common > DisplayStyles > ContextRealityModels > constructor constructor Method Construct a new list of reality models from its JSON representation. THe list will be initialized from container.classifiers and that JSON representation will be kept in sync with changes made to the list. The caller should not directly modify container.classifiers or its contents as that will cause the list to become out of sync with the JSON representation. ContextRealityModels(container: ContextRealityModelsContainer, createContextRealityModel?: (props: ContextRealityModelProps) => ContextRealityModel): ContextRealityModels Parameter Type Description container ContextRealityModelsContainer The object that holds the JSON representation of the list. createContextRealityModel (props: ContextRealityModelProps) => ContextRealityModel Optional function used to instantiate ContextRealityModels added to the list. Returns - ContextRealityModels Defined in core/common/src/ContextRealityModel.ts Line 291 Last Updated: 12 June, 2024