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

        Args:
            data (dict): the part of the response from a ticketswitch API call
                that concerns a commission payable to the user.

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

        """
    kwargs = {'including_vat': data.get('amount_including_vat'),
        'excluding_vat': data.get('amount_excluding_vat'), 'currency_code':
        data.get('commission_currency_code')}
    return cls(**kwargs)
