// Code generated by easyjson for marshaling/unmarshaling. DO NOT EDIT. package pptth_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 easyjson4fda2b6eDecodePptthJson(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 "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 "line": out.Line = int(in.Int()) case "winGold": out.WinGold = float64(in.Float64()) case "mul": out.Mul = int(in.Int()) case "count": out.Count = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson4fda2b6eEncodePptthJson(out *jwriter.Writer, in WinCombo) { out.RawByte('{') first := true _ = first { const prefix string = ",\"winPos\":" out.RawString(prefix[1:]) 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 = ",\"line\":" out.RawString(prefix) out.Int(int(in.Line)) } { 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 = ",\"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{} easyjson4fda2b6eEncodePptthJson(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v WinCombo) MarshalEasyJSON(w *jwriter.Writer) { easyjson4fda2b6eEncodePptthJson(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *WinCombo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson4fda2b6eDecodePptthJson(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *WinCombo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson4fda2b6eDecodePptthJson(l, v) } func easyjson4fda2b6eDecodePptthJson1(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 easyjson4fda2b6eEncodePptthJson1(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{} easyjson4fda2b6eEncodePptthJson1(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v StickyWildInfo) MarshalEasyJSON(w *jwriter.Writer) { easyjson4fda2b6eEncodePptthJson1(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *StickyWildInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson4fda2b6eDecodePptthJson1(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *StickyWildInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson4fda2b6eDecodePptthJson1(l, v) } func easyjson4fda2b6eDecodePptthJson2(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 v4 int v4 = int(in.Int()) (out.First)[key] = v4 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 v5 int v5 = int(in.Int()) (out.Extend)[key] = v5 in.WantComma() } in.Delim('}') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson4fda2b6eEncodePptthJson2(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('{') v6First := true for v6Name, v6Value := range in.First { if v6First { v6First = false } else { out.RawByte(',') } out.String(string(v6Name)) out.RawByte(':') out.Int(int(v6Value)) } out.RawByte('}') } } { const prefix string = ",\"extend\":" out.RawString(prefix) if in.Extend == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v7First := true for v7Name, v7Value := range in.Extend { if v7First { v7First = false } else { out.RawByte(',') } out.String(string(v7Name)) out.RawByte(':') out.Int(int(v7Value)) } out.RawByte('}') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v ScatterInfo) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson4fda2b6eEncodePptthJson2(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ScatterInfo) MarshalEasyJSON(w *jwriter.Writer) { easyjson4fda2b6eEncodePptthJson2(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ScatterInfo) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson4fda2b6eDecodePptthJson2(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ScatterInfo) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson4fda2b6eDecodePptthJson2(l, v) } func easyjson4fda2b6eDecodePptthJson3(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 v8 map[int]int if in.IsNull() { in.Skip() } else { in.Delim('{') v8 = make(map[int]int) for !in.IsDelim('}') { key := int(in.IntStr()) in.WantColon() var v9 int v9 = int(in.Int()) (v8)[key] = v9 in.WantComma() } in.Delim('}') } (out.Odds)[key] = v8 in.WantComma() } in.Delim('}') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson4fda2b6eEncodePptthJson3(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('{') v10First := true for v10Name, v10Value := range in.Odds { if v10First { v10First = false } else { out.RawByte(',') } out.IntStr(int(v10Name)) out.RawByte(':') if v10Value == nil && (out.Flags&jwriter.NilMapAsEmpty) == 0 { out.RawString(`null`) } else { out.RawByte('{') v11First := true for v11Name, v11Value := range v10Value { if v11First { v11First = false } else { out.RawByte(',') } out.IntStr(int(v11Name)) out.RawByte(':') out.Int(int(v11Value)) } out.RawByte('}') } } out.RawByte('}') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v OddConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson4fda2b6eEncodePptthJson3(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v OddConfig) MarshalEasyJSON(w *jwriter.Writer) { easyjson4fda2b6eEncodePptthJson3(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *OddConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson4fda2b6eDecodePptthJson3(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *OddConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson4fda2b6eDecodePptthJson3(l, v) } func easyjson4fda2b6eDecodePptthJson4(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 v12 []int if in.IsNull() { in.Skip() v12 = nil } else { in.Delim('[') if v12 == nil { if !in.IsDelim(']') { v12 = make([]int, 0, 8) } else { v12 = []int{} } } else { v12 = (v12)[:0] } for !in.IsDelim(']') { var v13 int v13 = int(in.Int()) v12 = append(v12, v13) in.WantComma() } in.Delim(']') } out.Cards = append(out.Cards, v12) 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 v14 []int if in.IsNull() { in.Skip() v14 = nil } else { in.Delim('[') if v14 == nil { if !in.IsDelim(']') { v14 = make([]int, 0, 8) } else { v14 = []int{} } } else { v14 = (v14)[:0] } for !in.IsDelim(']') { var v15 int v15 = int(in.Int()) v14 = append(v14, v15) in.WantComma() } in.Delim(']') } out.WinCards = append(out.WinCards, v14) 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 v16 WinCombo (v16).UnmarshalEasyJSON(in) out.WinCombo = append(out.WinCombo, v16) in.WantComma() } in.Delim(']') } case "maxWin": out.MaxWin = bool(in.Bool()) case "freeSpinsSeq": if in.IsNull() { in.Skip() out.FreeSpinsSeq = nil } else { in.Delim('[') if out.FreeSpinsSeq == nil { if !in.IsDelim(']') { out.FreeSpinsSeq = make([]int, 0, 8) } else { out.FreeSpinsSeq = []int{} } } else { out.FreeSpinsSeq = (out.FreeSpinsSeq)[:0] } for !in.IsDelim(']') { var v17 int v17 = int(in.Int()) out.FreeSpinsSeq = append(out.FreeSpinsSeq, v17) in.WantComma() } in.Delim(']') } case "isFree": out.IsFree = bool(in.Bool()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson4fda2b6eEncodePptthJson4(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 v18, v19 := range in.Cards { if v18 > 0 { out.RawByte(',') } if v19 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v20, v21 := range v19 { if v20 > 0 { out.RawByte(',') } out.Int(int(v21)) } 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 v22, v23 := range in.WinCards { if v22 > 0 { out.RawByte(',') } if v23 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v24, v25 := range v23 { if v24 > 0 { out.RawByte(',') } out.Int(int(v25)) } 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 v26, v27 := range in.WinCombo { if v26 > 0 { out.RawByte(',') } (v27).MarshalEasyJSON(out) } out.RawByte(']') } } { const prefix string = ",\"maxWin\":" out.RawString(prefix) out.Bool(bool(in.MaxWin)) } { const prefix string = ",\"freeSpinsSeq\":" out.RawString(prefix) if in.FreeSpinsSeq == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v28, v29 := range in.FreeSpinsSeq { if v28 > 0 { out.RawByte(',') } out.Int(int(v29)) } out.RawByte(']') } } { 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{} easyjson4fda2b6eEncodePptthJson4(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v ImagesItem) MarshalEasyJSON(w *jwriter.Writer) { easyjson4fda2b6eEncodePptthJson4(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *ImagesItem) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson4fda2b6eDecodePptthJson4(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *ImagesItem) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson4fda2b6eDecodePptthJson4(l, v) } func easyjson4fda2b6eDecodePptthJson5(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 v30 *ImagesItem if in.IsNull() { in.Skip() v30 = nil } else { if v30 == nil { v30 = new(ImagesItem) } (*v30).UnmarshalEasyJSON(in) } out.Si = append(out.Si, v30) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson4fda2b6eEncodePptthJson5(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 v31, v32 := range in.Si { if v31 > 0 { out.RawByte(',') } if v32 == nil { out.RawString("null") } else { (*v32).MarshalEasyJSON(out) } } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v Images) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson4fda2b6eEncodePptthJson5(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v Images) MarshalEasyJSON(w *jwriter.Writer) { easyjson4fda2b6eEncodePptthJson5(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *Images) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson4fda2b6eDecodePptthJson5(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *Images) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson4fda2b6eDecodePptthJson5(l, v) } func easyjson4fda2b6eDecodePptthJson6(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 "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 v33 int v33 = int(in.Int()) out.WildMul = append(out.WildMul, v33) in.WantComma() } in.Delim(']') } case "paylines": if in.IsNull() { in.Skip() out.Paylines = nil } else { in.Delim('[') if out.Paylines == nil { if !in.IsDelim(']') { out.Paylines = make([][]int, 0, 2) } else { out.Paylines = [][]int{} } } else { out.Paylines = (out.Paylines)[:0] } for !in.IsDelim(']') { var v34 []int if in.IsNull() { in.Skip() v34 = nil } else { in.Delim('[') if v34 == nil { if !in.IsDelim(']') { v34 = make([]int, 0, 8) } else { v34 = []int{} } } else { v34 = (v34)[:0] } for !in.IsDelim(']') { var v35 int v35 = int(in.Int()) v34 = append(v34, v35) in.WantComma() } in.Delim(']') } out.Paylines = append(out.Paylines, v34) in.WantComma() } in.Delim(']') } default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson4fda2b6eEncodePptthJson6(out *jwriter.Writer, in GameConfig) { out.RawByte('{') first := true _ = first { const prefix string = ",\"scatter\":" out.RawString(prefix[1:]) (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 v36, v37 := range in.WildMul { if v36 > 0 { out.RawByte(',') } out.Int(int(v37)) } out.RawByte(']') } } { const prefix string = ",\"paylines\":" out.RawString(prefix) if in.Paylines == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v38, v39 := range in.Paylines { if v38 > 0 { out.RawByte(',') } if v39 == nil && (out.Flags&jwriter.NilSliceAsEmpty) == 0 { out.RawString("null") } else { out.RawByte('[') for v40, v41 := range v39 { if v40 > 0 { out.RawByte(',') } out.Int(int(v41)) } out.RawByte(']') } } out.RawByte(']') } } out.RawByte('}') } // MarshalJSON supports json.Marshaler interface func (v GameConfig) MarshalJSON() ([]byte, error) { w := jwriter.Writer{} easyjson4fda2b6eEncodePptthJson6(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v GameConfig) MarshalEasyJSON(w *jwriter.Writer) { easyjson4fda2b6eEncodePptthJson6(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *GameConfig) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson4fda2b6eDecodePptthJson6(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *GameConfig) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson4fda2b6eDecodePptthJson6(l, v) } func easyjson4fda2b6eDecodePptthJson7(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 v42 *ImagesItem if in.IsNull() { in.Skip() v42 = nil } else { if v42 == nil { v42 = new(ImagesItem) } (*v42).UnmarshalEasyJSON(in) } out.SpinImage = append(out.SpinImage, v42) in.WantComma() } in.Delim(']') } case "scatterNum": out.ScatterNum = int(in.Int()) case "HitRateType": out.HitRateType = int(in.Int()) case "FreeTimeType": out.FreeTimeType = int(in.Int()) case "NewTypeNum": out.NewTypeNum = int(in.Int()) case "AxleIndex": out.AxleIndex = 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 v43 StickyWildInfo (v43).UnmarshalEasyJSON(in) out.StickyWilds = append(out.StickyWilds, v43) in.WantComma() } in.Delim(']') } case "totalWin": out.TotalWin = float64(in.Float64()) case "Idx": out.Idx = int(in.Int()) default: in.SkipRecursive() } in.WantComma() } in.Delim('}') if isTopLevel { in.Consumed() } } func easyjson4fda2b6eEncodePptthJson7(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 v44, v45 := range in.SpinImage { if v44 > 0 { out.RawByte(',') } if v45 == nil { out.RawString("null") } else { (*v45).MarshalEasyJSON(out) } } out.RawByte(']') } } { const prefix string = ",\"scatterNum\":" out.RawString(prefix) out.Int(int(in.ScatterNum)) } { const prefix string = ",\"HitRateType\":" out.RawString(prefix) out.Int(int(in.HitRateType)) } { const prefix string = ",\"FreeTimeType\":" out.RawString(prefix) out.Int(int(in.FreeTimeType)) } { const prefix string = ",\"NewTypeNum\":" out.RawString(prefix) out.Int(int(in.NewTypeNum)) } { const prefix string = ",\"AxleIndex\":" out.RawString(prefix) out.Int(int(in.AxleIndex)) } if len(in.StickyWilds) != 0 { const prefix string = ",\"stickyWilds\":" out.RawString(prefix) { out.RawByte('[') for v46, v47 := range in.StickyWilds { if v46 > 0 { out.RawByte(',') } (v47).MarshalEasyJSON(out) } out.RawByte(']') } } { const prefix string = ",\"totalWin\":" out.RawString(prefix) out.Float64(float64(in.TotalWin)) } { 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{} easyjson4fda2b6eEncodePptthJson7(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CustomData) MarshalEasyJSON(w *jwriter.Writer) { easyjson4fda2b6eEncodePptthJson7(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CustomData) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson4fda2b6eDecodePptthJson7(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CustomData) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson4fda2b6eDecodePptthJson7(l, v) } func easyjson4fda2b6eDecodePptthJson8(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 easyjson4fda2b6eEncodePptthJson8(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{} easyjson4fda2b6eEncodePptthJson8(&w, v) return w.Buffer.BuildBytes(), w.Error } // MarshalEasyJSON supports easyjson.Marshaler interface func (v CardPos) MarshalEasyJSON(w *jwriter.Writer) { easyjson4fda2b6eEncodePptthJson8(w, v) } // UnmarshalJSON supports json.Unmarshaler interface func (v *CardPos) UnmarshalJSON(data []byte) error { r := jlexer.Lexer{Data: data} easyjson4fda2b6eDecodePptthJson8(&r, v) return r.Error() } // UnmarshalEasyJSON supports easyjson.Unmarshaler interface func (v *CardPos) UnmarshalEasyJSON(l *jlexer.Lexer) { easyjson4fda2b6eDecodePptthJson8(l, v) }