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

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

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

        """
    kwargs = {'seatprice': data.get('offer_seatprice'), 'surcharge': data.
        get('offer_surcharge'), 'original_seatprice': data.get(
        'full_seatprice'), 'original_surcharge': data.get('full_surcharge'),
        'absolute_saving': data.get('absolute_saving'), 'percentage_saving':
        data.get('percentage_saving')}
    return cls(**kwargs)
