@classmethod
def from_dict(cls, data):
    """
        Creates a JaffleSession from a dict.

        Parameters
        ----------
        data : dict
            Python dict to initialize JaffleSession.

        Returns
        -------
        session : JaffleSession.
            Jaffle session.
        """
    return cls(id=data.get('id'), name=data.get('name'), kernel=data.get(
        'kernel'))
