SettingNodeModel#
- class SettingNodeModel(*, name, settings, subtrees, **extra_data)#
Bases:
BaseModel
Pydantic setting node model
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Module:
exa.common.api.model.setting_node_model
Attributes
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
name
settings
subtrees
Methods
Creates instance of
exa.common.data.setting_node.SettingNode
out of pydantic SettingNodeModelCreates pydantic SettingNodeModel out of
exa.common.data.setting_node.SettingNode
instance- Parameters:
name (str) –
settings (Dict[str, SettingModel]) –
subtrees (Dict[str, SettingNodeModel]) –
extra_data (Any) –
- model_config: ClassVar[ConfigDict] = {'extra': 'allow'}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- decode()#
Creates instance of
exa.common.data.setting_node.SettingNode
out of pydantic SettingNodeModel- Return type:
- classmethod encode(node)#
Creates pydantic SettingNodeModel out of
exa.common.data.setting_node.SettingNode
instance- Parameters:
node (SettingNode) –
- Return type: