func easyjson_decode_go_serialization_benchmarks_A(in *jlexer.Lexer, out *A) { in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeString() in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "Name": out.Name = in.String() case "BirthDay": if data := in.Raw(); in.Ok() { in.AddError((out.BirthDay).UnmarshalJSON(data)) } case "Phone": out.Phone = in.String() case "Siblings": out.Siblings = in.Int() case "Spouse": out.Spouse = in.Bool() case "Money": out.Money = in.Float64() default: in.SkipRecursive() } in.WantComma() } in.Delim('}') }
// UnmarshalEasyJSON does JSON unmarshaling using easyjson interface. func (v *RawMessage) UnmarshalEasyJSON(l *jlexer.Lexer) { *v = RawMessage(l.Raw()) }