from_str# classmethod SlotType.from_str(string: str) → SlotType# Convert string to an instance of the SlotType class. Parameters: string: strString to be converted. Returns: SlotTypeInstance of the SlotType class. Raises: TypeErrorRaised when an invalid type of string is given.