code: func (e *BaseType) UnmarshalJSON(b []byte) error {
  	var j string
  	err := json.Unmarshal(b, &j)
  	if err == nil {
  		s := string(j)
  		for v, s2 := range namesBaseType {
  			if s == s2 {
  				*e = BaseType(v)
  				return nil
  			}
  		}
  		err = fmt.Errorf("Bad enum symbol for type BaseType: %s", s)
  	}
  	return err
  }
docs: //
  // UnmarshalJSON is defined for proper JSON decoding of a BaseType
  //