MCPcopy Create free account
hub / github.com/abice/go-enum / UnmarshalJSON

Method UnmarshalJSON

example/sql_enum.go:268–277  ·  view source on GitHub ↗

UnmarshalJSON correctly deserializes a NullProjectStatus from JSON.

(b []byte)

Source from the content-addressed store, hash-verified

266
267// UnmarshalJSON correctly deserializes a NullProjectStatus from JSON.
268func (n *NullProjectStatusStr) UnmarshalJSON(b []byte) error {
269 n.Set = true
270 var x interface{}
271 err := json.Unmarshal(b, &x)
272 if err != nil {
273 return err
274 }
275 err = n.Scan(x)
276 return err
277}

Callers

nothing calls this directly

Calls 1

ScanMethod · 0.45

Tested by

no test coverage detected