// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. package ppgoo_json import ( json "encoding/json" easyjson "github.com/mailru/easyjson" jlexer "github.com/mailru/easyjson/jlexer" jwriter "github.com/mailru/easyjson/jwriter" ) // suppress unused package warning var ( _ *json.RawMessage _ *jlexer.Lexer _ *jwriter.Writer _ easyjson.Marshaler ) func easyjsonD93a43c7DecodePpgooJson(in *jlexer.Lexer, out *ScatterInfo) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "first": if in.IsNull() { in.Skip() } else { in.Delim('{') out.First = make(map[string]int) for !in.IsDelim('}') { key := string(in.String()) in.WantColon() var v1 int v1 = int(in.Int()) (out.First)[key] = v1 in.WantComma() } in.Delim('}') } case "extend": if in.IsNull() { in.Skip() } else { in.Delim('{') out.Extend = make(map[string]int) for !in.IsDelim('}') { key := string(in.String()) in.WantColon() var v2 int v2 = int(in.Int()) (out.Extend)[key] = v2 in.WantComma() } in.Delim('}') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonD93a43c7EncodePpgooJson(out *jwriter.Writer, in ScatterInfo) { out.RawByte('{') first := true _ = first { const prefix string = ",\"first\":" out.RawString(prefix[1:]) if in.First == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v3First := true for v3Name, v3Value := range in.First { if v3First { v3First = false } else { out.RawByte(',') } out.String(string(v3Name)) out.RawByte(':') out.Int(int(v3Value)) } out.RawByte('}') } } { const prefix string = ",\"extend\":" out.RawString(prefix) if in.Extend == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v4First := true for v4Name, v4Value := range in.Extend { if v4First { v4First = false } else { out.RawByte(',') } out.String(string(v4Name)) out.RawByte(':') out.Int(int(v4Value)) } out.RawByte('}') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ScatterInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD93a43c7EncodePpgooJson(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ScatterInfo) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD93a43c7EncodePpgooJson(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ScatterInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD93a43c7DecodePpgooJson(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ScatterInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD93a43c7DecodePpgooJson(l, v) } func easyjsonD93a43c7DecodePpgooJson1(in *jlexer.Lexer, out *OddConfig) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "baseBet": out.BaseBet = float64(in.Float64()) case "odds": if in.IsNull() { in.Skip() } else { in.Delim('{') out.Odds = make(map[int]map[int]int) for !in.IsDelim('}') { key := int(in.IntStr()) in.WantColon() var v5 map[int]int if in.IsNull() { in.Skip() } else { in.Delim('{') v5 = make(map[int]int) for !in.IsDelim('}') { key := int(in.IntStr()) in.WantColon() var v6 int v6 = int(in.Int()) (v5)[key] = v6 in.WantComma() } in.Delim('}') } (out.Odds)[key] = v5 in.WantComma() } in.Delim('}') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonD93a43c7EncodePpgooJson1(out *jwriter.Writer, in OddConfig) { out.RawByte('{') first := true _ = first { const prefix string = ",\"baseBet\":" out.RawString(prefix[1:]) out.Float64(float64(in.BaseBet)) } { const prefix string = ",\"odds\":" out.RawString(prefix) if in.Odds == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v7First := true for v7Name, v7Value := range in.Odds { if v7First { v7First = false } else { out.RawByte(',') } out.IntStr(int(v7Name)) out.RawByte(':') if v7Value == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v8First := true for v8Name, v8Value := range v7Value { if v8First { v8First = false } else { out.RawByte(',') } out.IntStr(int(v8Name)) out.RawByte(':') out.Int(int(v8Value)) } out.RawByte('}') } } out.RawByte('}') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v OddConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD93a43c7EncodePpgooJson1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v OddConfig) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD93a43c7EncodePpgooJson1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *OddConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD93a43c7DecodePpgooJson1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *OddConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD93a43c7DecodePpgooJson1(l, v) } func easyjsonD93a43c7DecodePpgooJson2(in *jlexer.Lexer, out *ImagesItem) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "cards": if in.IsNull() { in.Skip() out.Cards = nil } else { in.Delim('[') if out.Cards == nil { if !in.IsDelim(']') { out.Cards = make([][]int, 0, 2) } else { out.Cards = [][]int{} } } else { out.Cards = (out.Cards)[:0] } for !in.IsDelim(']') { var v9 []int if in.IsNull() { in.Skip() v9 = nil } else { in.Delim('[') if v9 == nil { if !in.IsDelim(']') { v9 = make([]int, 0, 8) } else { v9 = []int{} } } else { v9 = (v9)[:0] } for !in.IsDelim(']') { var v10 int v10 = int(in.Int()) v9 = append(v9, v10) in.WantComma() } in.Delim(']') } out.Cards = append(out.Cards, v9) in.WantComma() } in.Delim(']') } case "winGold": out.WinGold = float64(in.Float64()) case "tumbleWinGold": out.TumbleWinGold = float64(in.Float64()) case "freeGold": out.FreeGold = float64(in.Float64()) case "freeSpins": out.FreeSpins = int(in.Int()) case "gainedFreeSpins": out.GainedFreeSpins = int(in.Int()) case "wonFreeSpins": out.WonFreeSpins = bool(in.Bool()) case "winCards": if in.IsNull() { in.Skip() out.WinCards = nil } else { in.Delim('[') if out.WinCards == nil { if !in.IsDelim(']') { out.WinCards = make([][]int, 0, 2) } else { out.WinCards = [][]int{} } } else { out.WinCards = (out.WinCards)[:0] } for !in.IsDelim(']') { var v11 []int if in.IsNull() { in.Skip() v11 = nil } else { in.Delim('[') if v11 == nil { if !in.IsDelim(']') { v11 = make([]int, 0, 8) } else { v11 = []int{} } } else { v11 = (v11)[:0] } for !in.IsDelim(']') { var v12 int v12 = int(in.Int()) v11 = append(v11, v12) in.WantComma() } in.Delim(']') } out.WinCards = append(out.WinCards, v11) in.WantComma() } in.Delim(']') } case "mul": out.Mul = int(in.Int()) case "freeMul": out.FreeMul = int(in.Int()) case "totalWinGold": out.TotalWinGold = float64(in.Float64()) case "maxWin": out.MaxWin = bool(in.Bool()) case "isFree": out.IsFree = bool(in.Bool()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonD93a43c7EncodePpgooJson2(out *jwriter.Writer, in ImagesItem) { out.RawByte('{') first := true _ = first { const prefix string = ",\"cards\":" out.RawString(prefix[1:]) if in.Cards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v13, v14 := range in.Cards { if v13 > 0 { out.RawByte(',') } if v14 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v15, v16 := range v14 { if v15 > 0 { out.RawByte(',') } out.Int(int(v16)) } out.RawByte(']') } } out.RawByte(']') } } { const prefix string = ",\"winGold\":" out.RawString(prefix) out.Float64(float64(in.WinGold)) } { const prefix string = ",\"tumbleWinGold\":" out.RawString(prefix) out.Float64(float64(in.TumbleWinGold)) } { const prefix string = ",\"freeGold\":" out.RawString(prefix) out.Float64(float64(in.FreeGold)) } { const prefix string = ",\"freeSpins\":" out.RawString(prefix) out.Int(int(in.FreeSpins)) } { const prefix string = ",\"gainedFreeSpins\":" out.RawString(prefix) out.Int(int(in.GainedFreeSpins)) } { const prefix string = ",\"wonFreeSpins\":" out.RawString(prefix) out.Bool(bool(in.WonFreeSpins)) } { const prefix string = ",\"winCards\":" out.RawString(prefix) if in.WinCards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v17, v18 := range in.WinCards { if v17 > 0 { out.RawByte(',') } if v18 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v19, v20 := range v18 { if v19 > 0 { out.RawByte(',') } out.Int(int(v20)) } out.RawByte(']') } } out.RawByte(']') } } { const prefix string = ",\"mul\":" out.RawString(prefix) out.Int(int(in.Mul)) } { const prefix string = ",\"freeMul\":" out.RawString(prefix) out.Int(int(in.FreeMul)) } { const prefix string = ",\"totalWinGold\":" out.RawString(prefix) out.Float64(float64(in.TotalWinGold)) } { const prefix string = ",\"maxWin\":" out.RawString(prefix) out.Bool(bool(in.MaxWin)) } { const prefix string = ",\"isFree\":" out.RawString(prefix) out.Bool(bool(in.IsFree)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ImagesItem) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD93a43c7EncodePpgooJson2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ImagesItem) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD93a43c7EncodePpgooJson2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ImagesItem) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD93a43c7DecodePpgooJson2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ImagesItem) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD93a43c7DecodePpgooJson2(l, v) } func easyjsonD93a43c7DecodePpgooJson3(in *jlexer.Lexer, out *Images) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "si": if in.IsNull() { in.Skip() out.Si = nil } else { in.Delim('[') if out.Si == nil { if !in.IsDelim(']') { out.Si = make([]*ImagesItem, 0, 8) } else { out.Si = []*ImagesItem{} } } else { out.Si = (out.Si)[:0] } for !in.IsDelim(']') { var v21 *ImagesItem if in.IsNull() { in.Skip() v21 = nil } else { if v21 == nil { v21 = new(ImagesItem) } (*v21).UnmarshalEasyJSON(in) } out.Si = append(out.Si, v21) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonD93a43c7EncodePpgooJson3(out *jwriter.Writer, in Images) { out.RawByte('{') first := true _ = first { const prefix string = ",\"si\":" out.RawString(prefix[1:]) if in.Si == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v22, v23 := range in.Si { if v22 > 0 { out.RawByte(',') } if v23 == nil { out.RawString("null") } else { (*v23).MarshalEasyJSON(out) } } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Images) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD93a43c7EncodePpgooJson3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Images) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD93a43c7EncodePpgooJson3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Images) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD93a43c7DecodePpgooJson3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Images) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD93a43c7DecodePpgooJson3(l, v) } func easyjsonD93a43c7DecodePpgooJson4(in *jlexer.Lexer, out *GameConfig) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "row": out.Row = int(in.Int()) case "col": out.Col = int(in.Int()) case "maxWinLimit": if in.IsNull() { in.Skip() out.MaxWinLimit = nil } else { in.Delim('[') if out.MaxWinLimit == nil { if !in.IsDelim(']') { out.MaxWinLimit = make([]int, 0, 8) } else { out.MaxWinLimit = []int{} } } else { out.MaxWinLimit = (out.MaxWinLimit)[:0] } for !in.IsDelim(']') { var v24 int v24 = int(in.Int()) out.MaxWinLimit = append(out.MaxWinLimit, v24) in.WantComma() } in.Delim(']') } case "normalCards": if in.IsNull() { in.Skip() out.NormalCards = nil } else { in.Delim('[') if out.NormalCards == nil { if !in.IsDelim(']') { out.NormalCards = make([]int, 0, 8) } else { out.NormalCards = []int{} } } else { out.NormalCards = (out.NormalCards)[:0] } for !in.IsDelim(']') { var v25 int v25 = int(in.Int()) out.NormalCards = append(out.NormalCards, v25) in.WantComma() } in.Delim(']') } case "scatterCards": if in.IsNull() { in.Skip() out.ScatterCards = nil } else { in.Delim('[') if out.ScatterCards == nil { if !in.IsDelim(']') { out.ScatterCards = make([]int, 0, 8) } else { out.ScatterCards = []int{} } } else { out.ScatterCards = (out.ScatterCards)[:0] } for !in.IsDelim(']') { var v26 int v26 = int(in.Int()) out.ScatterCards = append(out.ScatterCards, v26) in.WantComma() } in.Delim(']') } case "wildCards": if in.IsNull() { in.Skip() out.WildCards = nil } else { in.Delim('[') if out.WildCards == nil { if !in.IsDelim(']') { out.WildCards = make([]int, 0, 8) } else { out.WildCards = []int{} } } else { out.WildCards = (out.WildCards)[:0] } for !in.IsDelim(']') { var v27 int v27 = int(in.Int()) out.WildCards = append(out.WildCards, v27) in.WantComma() } in.Delim(']') } case "scatter": (out.Scatter).UnmarshalEasyJSON(in) case "wildMul": if in.IsNull() { in.Skip() out.WildMul = nil } else { in.Delim('[') if out.WildMul == nil { if !in.IsDelim(']') { out.WildMul = make([]int, 0, 8) } else { out.WildMul = []int{} } } else { out.WildMul = (out.WildMul)[:0] } for !in.IsDelim(']') { var v28 int v28 = int(in.Int()) out.WildMul = append(out.WildMul, v28) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonD93a43c7EncodePpgooJson4(out *jwriter.Writer, in GameConfig) { out.RawByte('{') first := true _ = first { const prefix string = ",\"row\":" out.RawString(prefix[1:]) out.Int(int(in.Row)) } { const prefix string = ",\"col\":" out.RawString(prefix) out.Int(int(in.Col)) } { const prefix string = ",\"maxWinLimit\":" out.RawString(prefix) if in.MaxWinLimit == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v29, v30 := range in.MaxWinLimit { if v29 > 0 { out.RawByte(',') } out.Int(int(v30)) } out.RawByte(']') } } { const prefix string = ",\"normalCards\":" out.RawString(prefix) if in.NormalCards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v31, v32 := range in.NormalCards { if v31 > 0 { out.RawByte(',') } out.Int(int(v32)) } out.RawByte(']') } } { const prefix string = ",\"scatterCards\":" out.RawString(prefix) if in.ScatterCards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v33, v34 := range in.ScatterCards { if v33 > 0 { out.RawByte(',') } out.Int(int(v34)) } out.RawByte(']') } } { const prefix string = ",\"wildCards\":" out.RawString(prefix) if in.WildCards == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v35, v36 := range in.WildCards { if v35 > 0 { out.RawByte(',') } out.Int(int(v36)) } out.RawByte(']') } } { const prefix string = ",\"scatter\":" out.RawString(prefix) (in.Scatter).MarshalEasyJSON(out) } { const prefix string = ",\"wildMul\":" out.RawString(prefix) if in.WildMul == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v37, v38 := range in.WildMul { if v37 > 0 { out.RawByte(',') } out.Int(int(v38)) } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v GameConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD93a43c7EncodePpgooJson4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GameConfig) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD93a43c7EncodePpgooJson4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GameConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD93a43c7DecodePpgooJson4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GameConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD93a43c7DecodePpgooJson4(l, v) } func easyjsonD93a43c7DecodePpgooJson5(in *jlexer.Lexer, out *CustomData) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "Tw": out.Tw = float64(in.Float64()) case "Sstw": out.Sstw = float64(in.Float64()) case "SpinImage": if in.IsNull() { in.Skip() out.SpinImage = nil } else { in.Delim('[') if out.SpinImage == nil { if !in.IsDelim(']') { out.SpinImage = make([]*ImagesItem, 0, 8) } else { out.SpinImage = []*ImagesItem{} } } else { out.SpinImage = (out.SpinImage)[:0] } for !in.IsDelim(']') { var v39 *ImagesItem if in.IsNull() { in.Skip() v39 = nil } else { if v39 == nil { v39 = new(ImagesItem) } (*v39).UnmarshalEasyJSON(in) } out.SpinImage = append(out.SpinImage, v39) in.WantComma() } in.Delim(']') } case "scatterNum": out.ScatterNum = int(in.Int()) case "fsm": out.Fsm = int(in.Int()) case "Idx": out.Idx = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonD93a43c7EncodePpgooJson5(out *jwriter.Writer, in CustomData) { out.RawByte('{') first := true _ = first { const prefix string = ",\"Tw\":" out.RawString(prefix[1:]) out.Float64(float64(in.Tw)) } { const prefix string = ",\"Sstw\":" out.RawString(prefix) out.Float64(float64(in.Sstw)) } { const prefix string = ",\"SpinImage\":" out.RawString(prefix) if in.SpinImage == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v40, v41 := range in.SpinImage { if v40 > 0 { out.RawByte(',') } if v41 == nil { out.RawString("null") } else { (*v41).MarshalEasyJSON(out) } } out.RawByte(']') } } { const prefix string = ",\"scatterNum\":" out.RawString(prefix) out.Int(int(in.ScatterNum)) } { const prefix string = ",\"fsm\":" out.RawString(prefix) out.Int(int(in.Fsm)) } { const prefix string = ",\"Idx\":" out.RawString(prefix) out.Int(int(in.Idx)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v CustomData) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD93a43c7EncodePpgooJson5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CustomData) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD93a43c7EncodePpgooJson5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CustomData) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD93a43c7DecodePpgooJson5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CustomData) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD93a43c7DecodePpgooJson5(l, v) } func easyjsonD93a43c7DecodePpgooJson6(in *jlexer.Lexer, out *CardPos) { isTopLevel := in.IsStart() if in.IsNull() { if isTopLevel { in.Consumed() } in.Skip() return } in.Delim('{') for !in.IsDelim('}') { key := in.UnsafeFieldName(false) in.WantColon() if in.IsNull() { in.Skip() in.WantComma() continue } switch key { case "x": out.X = int(in.Int()) case "y": out.Y = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjsonD93a43c7EncodePpgooJson6(out *jwriter.Writer, in CardPos) { out.RawByte('{') first := true _ = first { const prefix string = ",\"x\":" out.RawString(prefix[1:]) out.Int(int(in.X)) } { const prefix string = ",\"y\":" out.RawString(prefix) out.Int(int(in.Y)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v CardPos) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjsonD93a43c7EncodePpgooJson6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CardPos) MarshalEasyJSON(w *jwriter.Writer) { easyjsonD93a43c7EncodePpgooJson6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CardPos) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjsonD93a43c7DecodePpgooJson6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CardPos) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjsonD93a43c7DecodePpgooJson6(l, v) }