Gets the model type and ID from a Model instance, DataModel instance, or model snapshot.
The result includes:
modelType
$modelType
modelId
undefined
modelIdPropertyName
modelInfo
A Model instance, DataModel instance, or model snapshot.
The model type and ID info, or undefined if not a valid model or snapshot.
Gets the model type and ID from a Model instance, DataModel instance, or model snapshot.
The result includes:
modelType: The model type name (from$modelType)modelId: The model ID value (orundefinedif no ID property)modelIdPropertyName: The name of the property that holds the model ID (orundefinedif no ID property)modelInfo: The model info (contains the model class and name)