code: func (m *Method) inheritQueryParams(parents map[string]NamedParameter, dicts map[string]interface{}) {
  	if len(m.QueryParameters) == 0 {
  		m.QueryParameters = map[string]NamedParameter{}
  	}
  	for name, parent := range parents {
  		qp, ok := m.QueryParameters[name]
  		if !ok {
  			if optionalTraitProperty(string(name)) { // don't inherit optional property if not exist
  				continue
  			}
  			qp = NamedParameter{Name: name}
  		}
  		parent.Name = name // parent name is not initialized by the parser
  		qp.inherit(parent, dicts)
  		m.QueryParameters[qp.Name] = qp
  	}
  
  }
docs: // inheritQueryParams inherit method's query params from parent query params.
  // parent query params could be from resource type or a trait