//------------------------------------------------------------------------------ // // This code was generated by a tool. // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ package cfg import "errors" type GameBuzkashiTrackLotteryData struct { Id int32 TrackID string TrackWt int32 } const TypeId_GameBuzkashiTrackLotteryData = 172598875 func (*GameBuzkashiTrackLotteryData) GetTypeId() int32 { return 172598875 } func (_v *GameBuzkashiTrackLotteryData)Deserialize(_buf map[string]interface{}) (err error) { { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["Id"].(float64); !_ok_ { err = errors.New("Id error"); return }; _v.Id = int32(_tempNum_) } { var _ok_ bool; if _v.TrackID, _ok_ = _buf["TrackID"].(string); !_ok_ { err = errors.New("TrackID error"); return } } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["TrackWt"].(float64); !_ok_ { err = errors.New("TrackWt error"); return }; _v.TrackWt = int32(_tempNum_) } return } func DeserializeGameBuzkashiTrackLotteryData(_buf map[string]interface{}) (*GameBuzkashiTrackLotteryData, error) { v := &GameBuzkashiTrackLotteryData{} if err := v.Deserialize(_buf); err == nil { return v, nil } else { return nil, err } }