//------------------------------------------------------------------------------ // // 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 LocalizeConfig_TW struct { Key string TextTw string } const TypeId_LocalizeConfig_TW = 2049583223 func (*LocalizeConfig_TW) GetTypeId() int32 { return 2049583223 } func (_v *LocalizeConfig_TW)Deserialize(_buf map[string]interface{}) (err error) { { var _ok_ bool; if _v.Key, _ok_ = _buf["key"].(string); !_ok_ { err = errors.New("key error"); return } } { var _ok_ bool; if _v.TextTw, _ok_ = _buf["text_tw"].(string); !_ok_ { err = errors.New("text_tw error"); return } } return } func DeserializeLocalizeConfig_TW(_buf map[string]interface{}) (*LocalizeConfig_TW, error) { v := &LocalizeConfig_TW{} if err := v.Deserialize(_buf); err == nil { return v, nil } else { return nil, err } }