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

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

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

        """
    kwargs = {'name': data.get('name'), 'value': data.get('value'),
        'value_html': data.get('value_html')}
    return cls(**kwargs)
