@classmethod
def from_dict(cls, d, strict=True):
    """
        Create a PassTheSalt object from a dictionary.

        Args:
            d (dict): the input dictionary.
            strict (bool): if set to False then no exception will be raised when
                unknown dictionary keys are present.

        Returns:
            PassTheSalt: a new PassTheSalt object.
        """
    pts = super().from_dict(d, strict=strict)
    for label, secret in pts.secrets.items():
        secret.add_context(label, pts)
    return pts
