def convert(value): if value is None: raise TypeError("None is not allowed.") else: return TypeConverters.toBoolean(value)
def convert(value): if value is None: return None else: return TypeConverters.toBoolean(value)
def convert(value): if value is None: raise TypeError("None is not allowed.") else: return TypeConverters.toBoolean(value)
def convert(value): if value is None: return None else: return TypeConverters.toBoolean(value)