code: func (m *Task) UnmarshalJSON(raw []byte) error {
  	// AO0
  	var aO0 TaskCard
  	if err := swag.ReadJSON(raw, &aO0); err != nil {
  		return err
  	}
  	m.TaskCard = aO0
  
  	// AO1
  	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"`
  	}
  	if err := swag.ReadJSON(raw, &dataAO1); err != nil {
  		return err
  	}
  
  	m.Attachments = dataAO1.Attachments
  
  	m.Comments = dataAO1.Comments
  
  	m.LastUpdated = dataAO1.LastUpdated
  
  	m.LastUpdatedBy = dataAO1.LastUpdatedBy
  
  	m.ReportedBy = dataAO1.ReportedBy
  
  	return nil
  }
docs: // UnmarshalJSON unmarshals this object from a JSON structure