@classmethod
def from_api_data(cls, data):
    """Creates a new Integration object from API data from ticketswitch.

        Args:
            data (dict): the part of the response from a ticketswitch API call
                that concerns the integration.

        Returns:
            :class:`Integration <pyticketswitch.callout.Integration>`: a new
            :class:`Integration <pyticketswitch.callout.Integration>` object
            populated with the data from the api.

        """
    kwargs = {'typ': data.get('debitor_type'), 'amount': data.get(
        'debit_amount'), 'base_amount': data.get('debit_base_amount'),
        'currency': data.get('debit_currency'), 'data': data.get(
        'debitor_specific_data')}
    return cls(**kwargs)
