code: func (m Task) MarshalJSON() ([]byte, error) {
  	_parts := make([][]byte, 0, 2)
  
  	aO0, err := swag.WriteJSON(m.TaskCard)
  	if err != nil {
  		return nil, err
  	}
  	_parts = append(_parts, aO0)
  
  	var dataAO1 struct {
  		Attachments map[string]TaskAttachmentsAnon `json:"attachments,omitempty"`
  
  		Comments []*Comment `json:"comments"`
  
  		LastUpdated strfmt.DateTime `json:"lastUpdated,omitempty"`
  
  		LastUpdatedBy *UserCard `json:"lastUpdatedBy,omitempty"`
  
  		ReportedBy *UserCard `json:"reportedBy,omitempty"`
  	}
  
  	dataAO1.Attachments = m.Attachments
  
  	dataAO1.Comments = m.Comments
  
  	dataAO1.LastUpdated = m.LastUpdated
  
  	dataAO1.LastUpdatedBy = m.LastUpdatedBy
  
  	dataAO1.ReportedBy = m.ReportedBy
  
  	jsonDataAO1, errAO1 := swag.WriteJSON(dataAO1)
  	if errAO1 != nil {
  		return nil, errAO1
  	}
  	_parts = append(_parts, jsonDataAO1)
  
  	return swag.ConcatJSON(_parts...), nil
  }
docs: // MarshalJSON marshals this object to a JSON structure