mitk.property_from_dict#
- mitk.property_from_dict(d: dict) mitk.BaseProperty#
Reconstruct a
BasePropertysubclass from a dict.Consumes the dict layout used by
PropertyList.to_dict()(per-entry values) and byTemporoSpatialStringProperty.to_dict(). Inspects the"type"key in the dict to pick the correct subclass.- Parameters:
d – Dict describing a single property’s type and value.
- Returns:
A new
BasePropertyof the appropriate subclass.