PostScan implements the [dbx.PostScanner] interface to auto unmarshal the raw serialized options into the concrete type specific fields.
()
| 494 | // PostScan implements the [dbx.PostScanner] interface to auto unmarshal |
| 495 | // the raw serialized options into the concrete type specific fields. |
| 496 | func (m *Collection) PostScan() error { |
| 497 | if err := m.BaseModel.PostScan(); err != nil { |
| 498 | return err |
| 499 | } |
| 500 | |
| 501 | return m.unmarshalRawOptions() |
| 502 | } |
| 503 | |
| 504 | func (m *Collection) unmarshalRawOptions() error { |
| 505 | raw, err := m.RawOptions.MarshalJSON() |