// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. package pptdhm_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 easyjson22d797d1DecodePptdhmJson(in *jlexer.Lexer, out *WinCombo) { 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 "card": out.Card = int(in.Int()) case "winPos": if in.IsNull() { in.Skip() out.WinPos = nil } else { in.Delim('[') if out.WinPos == nil { if !in.IsDelim(']') { out.WinPos = make([]CardPos, 0, 4) } else { out.WinPos = []CardPos{} } } else { out.WinPos = (out.WinPos)[:0] } for !in.IsDelim(']') { var v1 CardPos (v1).UnmarshalEasyJSON(in) out.WinPos = append(out.WinPos, v1) in.WantComma() } in.Delim(']') } case "winGold": out.WinGold = float64(in.Float64()) case "mul": out.Mul = int(in.Int()) case "ways": out.Ways = int(in.Int()) case "count": out.Count = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson22d797d1EncodePptdhmJson(out *jwriter.Writer, in WinCombo) { out.RawByte('{') first := true _ = first { const prefix string = ",\"card\":" out.RawString(prefix[1:]) out.Int(int(in.Card)) } { const prefix string = ",\"winPos\":" out.RawString(prefix) if in.WinPos == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v2, v3 := range in.WinPos { if v2 > 0 { out.RawByte(',') } (v3).MarshalEasyJSON(out) } out.RawByte(']') } } { const prefix string = ",\"winGold\":" out.RawString(prefix) out.Float64(float64(in.WinGold)) } { const prefix string = ",\"mul\":" out.RawString(prefix) out.Int(int(in.Mul)) } { const prefix string = ",\"ways\":" out.RawString(prefix) out.Int(int(in.Ways)) } if in.Count != 0 { const prefix string = ",\"count\":" out.RawString(prefix) out.Int(int(in.Count)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v WinCombo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson22d797d1EncodePptdhmJson(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v WinCombo) MarshalEasyJSON(w *jwriter.Writer) { easyjson22d797d1EncodePptdhmJson(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *WinCombo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson22d797d1DecodePptdhmJson(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *WinCombo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson22d797d1DecodePptdhmJson(l, v) } func easyjson22d797d1DecodePptdhmJson1(in *jlexer.Lexer, out *StickyWildInfo) { 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 "cardValue": out.CardValue = int(in.Int()) 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 easyjson22d797d1EncodePptdhmJson1(out *jwriter.Writer, in StickyWildInfo) { out.RawByte('{') first := true _ = first { const prefix string = ",\"cardValue\":" out.RawString(prefix[1:]) out.Int(int(in.CardValue)) } { const prefix string = ",\"x\":" out.RawString(prefix) 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 StickyWildInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson22d797d1EncodePptdhmJson1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StickyWildInfo) MarshalEasyJSON(w *jwriter.Writer) { easyjson22d797d1EncodePptdhmJson1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StickyWildInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson22d797d1DecodePptdhmJson1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StickyWildInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson22d797d1DecodePptdhmJson1(l, v) } func easyjson22d797d1DecodePptdhmJson2(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 v4 map[int]int if in.IsNull() { in.Skip() } else { in.Delim('{') v4 = make(map[int]int) for !in.IsDelim('}') { key := int(in.IntStr()) in.WantColon() var v5 int v5 = int(in.Int()) (v4)[key] = v5 in.WantComma() } in.Delim('}') } (out.Odds)[key] = v4 in.WantComma() } in.Delim('}') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson22d797d1EncodePptdhmJson2(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('{') v6First := true for v6Name, v6Value := range in.Odds { if v6First { v6First = false } else { out.RawByte(',') } out.IntStr(int(v6Name)) out.RawByte(':') if v6Value == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v7First := true for v7Name, v7Value := range v6Value { if v7First { v7First = false } else { out.RawByte(',') } out.IntStr(int(v7Name)) out.RawByte(':') out.Int(int(v7Value)) } out.RawByte('}') } } out.RawByte('}') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v OddConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson22d797d1EncodePptdhmJson2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v OddConfig) MarshalEasyJSON(w *jwriter.Writer) { easyjson22d797d1EncodePptdhmJson2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *OddConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson22d797d1DecodePptdhmJson2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *OddConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson22d797d1DecodePptdhmJson2(l, v) } func easyjson22d797d1DecodePptdhmJson3(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 v8 []int if in.IsNull() { in.Skip() v8 = nil } else { in.Delim('[') if v8 == nil { if !in.IsDelim(']') { v8 = make([]int, 0, 8) } else { v8 = []int{} } } else { v8 = (v8)[:0] } for !in.IsDelim(']') { var v9 int v9 = int(in.Int()) v8 = append(v8, v9) in.WantComma() } in.Delim(']') } out.Cards = append(out.Cards, v8) 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 v10 []int if in.IsNull() { in.Skip() v10 = nil } else { in.Delim('[') if v10 == nil { if !in.IsDelim(']') { v10 = make([]int, 0, 8) } else { v10 = []int{} } } else { v10 = (v10)[:0] } for !in.IsDelim(']') { var v11 int v11 = int(in.Int()) v10 = append(v10, v11) in.WantComma() } in.Delim(']') } out.WinCards = append(out.WinCards, v10) in.WantComma() } in.Delim(']') } case "mul": out.Mul = int(in.Int()) case "freeMul": out.FreeMul = float64(in.Float64()) case "totalWinGold": out.TotalWinGold = float64(in.Float64()) case "winCombo": if in.IsNull() { in.Skip() out.WinCombo = nil } else { in.Delim('[') if out.WinCombo == nil { if !in.IsDelim(']') { out.WinCombo = make([]WinCombo, 0, 1) } else { out.WinCombo = []WinCombo{} } } else { out.WinCombo = (out.WinCombo)[:0] } for !in.IsDelim(']') { var v12 WinCombo (v12).UnmarshalEasyJSON(in) out.WinCombo = append(out.WinCombo, v12) in.WantComma() } in.Delim(']') } case "maxWin": out.MaxWin = bool(in.Bool()) case "isFree": out.IsFree = bool(in.Bool()) case "ScatterCount": out.ScatterCount = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson22d797d1EncodePptdhmJson3(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.Float64(float64(in.FreeMul)) } { const prefix string = ",\"totalWinGold\":" out.RawString(prefix) out.Float64(float64(in.TotalWinGold)) } { const prefix string = ",\"winCombo\":" out.RawString(prefix) if in.WinCombo == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v21, v22 := range in.WinCombo { if v21 > 0 { out.RawByte(',') } (v22).MarshalEasyJSON(out) } out.RawByte(']') } } { const prefix string = ",\"maxWin\":" out.RawString(prefix) out.Bool(bool(in.MaxWin)) } { const prefix string = ",\"isFree\":" out.RawString(prefix) out.Bool(bool(in.IsFree)) } { const prefix string = ",\"ScatterCount\":" out.RawString(prefix) out.Int(int(in.ScatterCount)) } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ImagesItem) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson22d797d1EncodePptdhmJson3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ImagesItem) MarshalEasyJSON(w *jwriter.Writer) { easyjson22d797d1EncodePptdhmJson3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ImagesItem) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson22d797d1DecodePptdhmJson3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ImagesItem) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson22d797d1DecodePptdhmJson3(l, v) } func easyjson22d797d1DecodePptdhmJson4(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 v23 *ImagesItem if in.IsNull() { in.Skip() v23 = nil } else { if v23 == nil { v23 = new(ImagesItem) } (*v23).UnmarshalEasyJSON(in) } out.Si = append(out.Si, v23) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson22d797d1EncodePptdhmJson4(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 v24, v25 := range in.Si { if v24 > 0 { out.RawByte(',') } if v25 == nil { out.RawString("null") } else { (*v25).MarshalEasyJSON(out) } } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Images) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson22d797d1EncodePptdhmJson4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Images) MarshalEasyJSON(w *jwriter.Writer) { easyjson22d797d1EncodePptdhmJson4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Images) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson22d797d1DecodePptdhmJson4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Images) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson22d797d1DecodePptdhmJson4(l, v) } func easyjson22d797d1DecodePptdhmJson5(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 "minScatter": out.MinScatter = int(in.Int()) case "scatterSticky": if in.IsNull() { in.Skip() } else { in.Delim('{') out.ScatterSticky = make(map[int]int) for !in.IsDelim('}') { key := int(in.IntStr()) in.WantColon() var v26 int v26 = int(in.Int()) (out.ScatterSticky)[key] = v26 in.WantComma() } in.Delim('}') } case "scatterRain": if in.IsNull() { in.Skip() } else { in.Delim('{') out.ScatterRain = make(map[int]int) for !in.IsDelim('}') { key := int(in.IntStr()) in.WantColon() var v27 int v27 = int(in.Int()) (out.ScatterRain)[key] = v27 in.WantComma() } in.Delim('}') } 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 easyjson22d797d1EncodePptdhmJson5(out *jwriter.Writer, in GameConfig) { out.RawByte('{') first := true _ = first { const prefix string = ",\"minScatter\":" out.RawString(prefix[1:]) out.Int(int(in.MinScatter)) } { const prefix string = ",\"scatterSticky\":" out.RawString(prefix) if in.ScatterSticky == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v29First := true for v29Name, v29Value := range in.ScatterSticky { if v29First { v29First = false } else { out.RawByte(',') } out.IntStr(int(v29Name)) out.RawByte(':') out.Int(int(v29Value)) } out.RawByte('}') } } { const prefix string = ",\"scatterRain\":" out.RawString(prefix) if in.ScatterRain == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v30First := true for v30Name, v30Value := range in.ScatterRain { if v30First { v30First = false } else { out.RawByte(',') } out.IntStr(int(v30Name)) out.RawByte(':') out.Int(int(v30Value)) } out.RawByte('}') } } { const prefix string = ",\"wildMul\":" out.RawString(prefix) if in.WildMul == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v31, v32 := range in.WildMul { if v31 > 0 { out.RawByte(',') } out.Int(int(v32)) } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v GameConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson22d797d1EncodePptdhmJson5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GameConfig) MarshalEasyJSON(w *jwriter.Writer) { easyjson22d797d1EncodePptdhmJson5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GameConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson22d797d1DecodePptdhmJson5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GameConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson22d797d1DecodePptdhmJson5(l, v) } func easyjson22d797d1DecodePptdhmJson6(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 "Fsci": out.Fsci = int(in.Int()) case "Fsmi": out.Fsmi = int(in.Int()) 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 v33 *ImagesItem if in.IsNull() { in.Skip() v33 = nil } else { if v33 == nil { v33 = new(ImagesItem) } (*v33).UnmarshalEasyJSON(in) } out.SpinImage = append(out.SpinImage, v33) in.WantComma() } in.Delim(']') } case "scatterNum": out.ScatterNum = int(in.Int()) case "stickyWilds": if in.IsNull() { in.Skip() out.StickyWilds = nil } else { in.Delim('[') if out.StickyWilds == nil { if !in.IsDelim(']') { out.StickyWilds = make([]StickyWildInfo, 0, 2) } else { out.StickyWilds = []StickyWildInfo{} } } else { out.StickyWilds = (out.StickyWilds)[:0] } for !in.IsDelim(']') { var v34 StickyWildInfo (v34).UnmarshalEasyJSON(in) out.StickyWilds = append(out.StickyWilds, v34) in.WantComma() } in.Delim(']') } case "scatterCount": out.ScatterCount = int(in.Int()) case "Idx": out.Idx = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson22d797d1EncodePptdhmJson6(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 = ",\"Fsci\":" out.RawString(prefix) out.Int(int(in.Fsci)) } { const prefix string = ",\"Fsmi\":" out.RawString(prefix) out.Int(int(in.Fsmi)) } { const prefix string = ",\"SpinImage\":" out.RawString(prefix) if in.SpinImage == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v35, v36 := range in.SpinImage { if v35 > 0 { out.RawByte(',') } if v36 == nil { out.RawString("null") } else { (*v36).MarshalEasyJSON(out) } } out.RawByte(']') } } { const prefix string = ",\"scatterNum\":" out.RawString(prefix) out.Int(int(in.ScatterNum)) } if len(in.StickyWilds) != 0 { const prefix string = ",\"stickyWilds\":" out.RawString(prefix) { out.RawByte('[') for v37, v38 := range in.StickyWilds { if v37 > 0 { out.RawByte(',') } (v38).MarshalEasyJSON(out) } out.RawByte(']') } } { const prefix string = ",\"scatterCount\":" out.RawString(prefix) out.Int(int(in.ScatterCount)) } { 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{} easyjson22d797d1EncodePptdhmJson6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CustomData) MarshalEasyJSON(w *jwriter.Writer) { easyjson22d797d1EncodePptdhmJson6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CustomData) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson22d797d1DecodePptdhmJson6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CustomData) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson22d797d1DecodePptdhmJson6(l, v) } func easyjson22d797d1DecodePptdhmJson7(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 easyjson22d797d1EncodePptdhmJson7(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{} easyjson22d797d1EncodePptdhmJson7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CardPos) MarshalEasyJSON(w *jwriter.Writer) { easyjson22d797d1EncodePptdhmJson7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CardPos) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson22d797d1DecodePptdhmJson7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CardPos) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson22d797d1DecodePptdhmJson7(l, v) }