il2_rest/util.py
def null_condition_attribute(obj, attribute) :
    """
    Return the value of the item with key equals to attribute.

    Args:
        obj (:obj:`dict`) : Dictionary object.
        attribute (:obj:`str`) : Attribute name of obj.

    Returns:
        The value of the item.
        If obj is None, return None.
    """
    if (obj is None):
        return None
    else :
        return getattr(obj, attribute)

    Return the value of the item with key equals to attribute.

    Args:
        obj (:obj:`dict`) : Dictionary object.
        attribute (:obj:`str`) : Attribute name of obj.

    Returns:
        The value of the item.
        If obj is None, return None.
    
Return the value of the item with key equals to attribute.
Return the value of the item with key equals to attribute .
def null_condition_attribute(obj, attribute) :
    if (obj is None):
        return None
    else :
        return getattr(obj, attribute)
def null_condition_attribute ( obj , attribute ) : if ( obj is None ) : return None else : return getattr ( obj , attribute )
Return the value of the item with key equals to attribute.
Return the value of the item with key equals to attribute .
"""
    Return the value of the item with key equals to attribute.

    Args:
        obj (:obj:`dict`) : Dictionary object.
        attribute (:obj:`str`) : Attribute name of obj.

    Returns:
        The value of the item.
        If obj is None, return None.
    """
The value of the item.
If obj is None, return None.
The value of the item . If obj is None return None .
obj
attribute
obj (
`dict`) : Dictionary object.
` dict ` ) : Dictionary object .
attribute (
`str`) : Attribute name of obj.
` str ` ) : Attribute name of obj .