@classmethod
def from_json(cls, data):
    """
        Instantiate YNAB object directly from raw JSON data.

        Parameters
        ----------
        data : dict

        Returns
        -------
        ynab : YNAB
        """
    instance = object.__new__(cls)
    instance._init_data(data)
    return instance
