func (v *Uint8) UnmarshalJSON(data []byte) error {
	l := jlexer.Lexer{}
	v.UnmarshalEasyJSON(&l)
	return l.Error()
}
MarshalJSON implements a standard json marshaler interface.
package opt
import (
	"fmt"
	"github.com/mailru/easyjson/jlexer"
	"github.com/mailru/easyjson/jwriter"
)
type Uint8 struct {
	V       uint8
	Defined bool
}
func OUint8(v uint8) Uint8 {
	return Uint8{V: v, Defined: true}
}
func (v Uint8) Get(deflt uint8) uint8 {
	if !v.Defined {
		return deflt
	}
	return v.V
}
func (v Uint8) MarshalEasyJSON(w *jwriter.Writer) {
	if v.Defined {
		w.Uint8(v.V)
	} else {
		w.RawString("null")
	}
}
func (v *Uint8) UnmarshalEasyJSON(l *jlexer.Lexer) {
	if l.IsNull() {
		l.Skip()
		*v = Uint8{}
	} else {
		v.V = l.Uint8()
		v.Defined = true
	}
}
func (v *Uint8) MarshalJSON() ([]byte, error) {
	w := jwriter.Writer{}
	v.MarshalEasyJSON(&w)
	return w.Buffer.BuildBytes(), w.Error
}