code: func (m *MethodType) UnmarshalJSON(data []byte) error {
  	val, err := strconv.Atoi(string(data))
  	if err != nil {
  		method := strings.Trim(strings.ToUpper(string(data)), `"`)
  		if v, ok := MethodType_value[method]; ok {
  			*m = MethodType(v)
  			return nil
  		}
  		return err
  	}
  	*m = MethodType(val)
  	return nil
  }
docs: // UnmarshalJSON helps to unmarshal command method when set as string.