PrepareValue implements [Field.PrepareValue] interface method.
(record *Record, raw any)
| 102 | |
| 103 | // PrepareValue implements [Field.PrepareValue] interface method. |
| 104 | func (f *BoolField) PrepareValue(record *Record, raw any) (any, error) { |
| 105 | return cast.ToBool(raw), nil |
| 106 | } |
| 107 | |
| 108 | // ValidateValue implements [Field.ValidateValue] interface method. |
| 109 | func (f *BoolField) ValidateValue(ctx context.Context, app App, record *Record) error { |
no outgoing calls