pub fn bool_with_default(
    name: &str,
    def: bool,
    properties: &Map<Value>,
    doc_id: &str,
    line_number: usize
) -> Result<bool>