SetNillableType sets the "type" field if the given value is not nil.
(s *string)
| 64 | |
| 65 | // SetNillableType sets the "type" field if the given value is not nil. |
| 66 | func (tu *TaskUpdate) SetNillableType(s *string) *TaskUpdate { |
| 67 | if s != nil { |
| 68 | tu.SetType(*s) |
| 69 | } |
| 70 | return tu |
| 71 | } |
| 72 | |
| 73 | // SetStatus sets the "status" field. |
| 74 | func (tu *TaskUpdate) SetStatus(t task.Status) *TaskUpdate { |