code: func (a *Client) ListTasks(params *ListTasksParams) (*ListTasksOK, error) {
  	// TODO: Validate the params before sending
  	if params == nil {
  		params = NewListTasksParams()
  	}
  
  	result, err := a.transport.Submit(&runtime.ClientOperation{
  		ID:                 "listTasks",
  		Method:             "GET",
  		PathPattern:        "/tasks",
  		ProducesMediaTypes: []string{"application/vnd.goswagger.examples.task-tracker.v1+json"},
  		ConsumesMediaTypes: []string{"application/vnd.goswagger.examples.task-tracker.v1+json"},
  		Schemes:            []string{"http", "https"},
  		Params:             params,
  		Reader:             &ListTasksReader{formats: a.formats},
  		Context:            params.Context,
  		Client:             params.HTTPClient,
  	})
  	if err != nil {
  		return nil, err
  	}
  	return result.(*ListTasksOK), nil
  
  }
docs: /*
  ListTasks lists the tasks
  
  Allows for specifying a number of filter parameters to
  narrow down the results.
  Also allows for specifying a **sinceId** and **pageSize** parameter
  to page through large result sets.
  
  */