@classmethod
def _get_attribute(cls, data, attribute, fallback=None):
    """Return the attribute from the JSON data.

        :param dict data: dictionary used to put together the model
        :param str attribute: key of the attribute
        :param any fallback: return value if original return value is falsy
        :returns: value paried with key in dict, fallback
        """
    if data is None or not isinstance(data, dict):
        return None
    result = data.get(attribute)
    if result is None:
        return fallback
    return result
