def get_as_boolean_with_default(self, key, default_value):
        """
        Converts map element into a boolean or returns default value if conversion is not possible.

        :param key: an index of element to get.

        :param default_value: the default value

        :return: boolean value ot the element or default value if conversion is not supported.
        """
        value = self.get(key)
        return BooleanConverter.to_boolean_with_default(value, default_value)
def get_as_boolean_with_default ( self , key , default_value ) : value = self . get ( key ) return BooleanConverter . to_boolean_with_default ( value , default_value )
Converts map element into a boolean or returns default value if conversion is not possible.

        :param key: an index of element to get.

        :param default_value: the default value

        :return: boolean value ot the element or default value if conversion is not supported.