profiles.base.BaseProfile.from_dict#
- classmethod BaseProfile.from_dict(data)[source]#
Reconstruct a profile instance from a dictionary.
- Parameters:
data (
dict
) – Dictionary containingparameters
in the format produced byto_dict()
.- Returns:
A new instance of the profile with the specified parameters.
- Return type:
- Raises:
ValueError – If required keys are missing or invalid parameter names are provided.