materials_compendium.parse.Contact.from_dict

static Contact.from_dict(obj)[source]

Create a Contact object from a dictionary representation.

Parameters: obj (Optional[dict]): A dictionary containing keys “Phone”, “Name”, and “Email”.

Return type:

Optional[Contact]

Returns: Optional[Contact]: A new Contact object with attributes initialized using the values from the dictionary,

or blank data if the input dictionary is None.