// MarshalEasyJSON does JSON marshaling using easyjson interface. func (v Bool) MarshalEasyJSON(w *jwriter.Writer) { if v.Defined { w.Bool(v.V) } else { w.RawString("null") } }
func easyjson_encode_go_serialization_benchmarks_A(out *jwriter.Writer, in *A) { out.RawByte('{') first := true _ = first if !first { out.RawByte(',') } first = false out.RawString("\"Name\":") out.String(in.Name) if !first { out.RawByte(',') } first = false out.RawString("\"BirthDay\":") out.Raw((in.BirthDay).MarshalJSON()) if !first { out.RawByte(',') } first = false out.RawString("\"Phone\":") out.String(in.Phone) if !first { out.RawByte(',') } first = false out.RawString("\"Siblings\":") out.Int(in.Siblings) if !first { out.RawByte(',') } first = false out.RawString("\"Spouse\":") out.Bool(in.Spouse) if !first { out.RawByte(',') } first = false out.RawString("\"Money\":") out.Float64(in.Money) out.RawByte('}') }