// AddSQLNullBool decodes the JSON value within an object or an array to an *sql.NullBool
482359
func (dec *Decoder) AddSQLNullBool(v *sql.NullBool) error {
	return dec.SQLNullBool(v)
}
579868
func (ctx *Context) QueryBool(key string, defaults ...bool) bool {
	return (*Queries)(ctx.req).MustBool(key, defaults...)
}
514781
func (n *NullBool) ParseBoolValue(val *bool) {
	if val == nil {
		n.IsSet = false
		n.Value = false
		return
	}

	n.Value = *val
	n.IsSet = true
}
138467
func (dec *Decoder) BoolNull(v **bool) error {
	err := dec.decodeBoolNull(v)
	if err != nil {
		return err
	}
	dec.called |= 1
	return nil
}
638237
func (enc *Encoder) AddBoolKeyNullEmpty(key string, v bool) {
	enc.BoolKeyNullEmpty(key, v)
}
242792
func (enc *Encoder) AddSQLNullInt64OmitEmpty(v *sql.NullInt64) {
	if v != nil && v.Valid && v.Int64 != 0 {
		enc.Int64OmitEmpty(v.Int64)
	}
}
772355
func (enc *Encoder) AddSQLNullFloat64OmitEmpty(v *sql.NullFloat64) {
	if v != nil && v.Valid && v.Float64 != 0 {
		enc.Float64OmitEmpty(v.Float64)
	}
}
169685
func (dec *Decoder) AddSQLNullInt64(v *sql.NullInt64) error {
	return dec.SQLNullInt64(v)
}
1191554
func (enc *Encoder) AddBoolKey(key string, v bool) {
	enc.BoolKey(key, v)
}
271550
func (enc *Encoder) AddObjectKeyNullEmpty(key string, v MarshalerJSONObject) {
	enc.ObjectKeyNullEmpty(key, v)
}
715447
func (c *IniConfigContainer) DefaultBool(key string, defaultval bool) bool {
	v, err := c.Bool(key)
	if err != nil {
		return defaultval
	}
	return v
}
1276932
func (enc *Encoder) AddSQLNullString(v *sql.NullString) {
	enc.String(v.String)
}
202863
func (enc *Encoder) AddSQLNullStringOmitEmpty(v *sql.NullString) {
	if v != nil && v.Valid && v.String != "" {
		enc.StringOmitEmpty(v.String)
	}
}
952680
func (dec *Decoder) SQLNullFloat64(v *sql.NullFloat64) error {
	var b *float64
	if err := dec.Float64Null(&b); err != nil {
		return err
	}
	if b == nil {
		v.Valid = false
	} else {
		v.Float64 = *b
		v.Valid = true
	}
	return nil
}
1013496
func optionalBool(arg []bool, defaultValue bool) bool {
	if len(arg) == 0 {
		return defaultValue
	}
	return arg[0]
}
468792
func DefaultBool(obj interface{}, defaultValue bool) bool {
	returnValue, ok := obj.(bool)
	if ok {
		return returnValue
	}

	returnValue, err := strconv.ParseBool(fmt.Sprint(obj))
	if err != nil {
		return defaultValue
	}

	return returnValue
}
1301262
func (enc *Encoder) AddSQLNullInt64(v *sql.NullInt64) {
	enc.Int64(v.Int64)
}