func (r Response) toLocalResponse() response { rr := response{myJson.FromGraphTask(r.Info), make([]myJson.Task, 0)} for _, t := range r.Tasks { rr.Tasks = append(rr.Tasks, myJson.FromGraphTask(t)) } return rr }
func fromGraphTasks(t []graph.Task) file { f := file{make([]myJson.Task, 0)} for _, task := range t { f.Tasks = append(f.Tasks, myJson.FromGraphTask(task)) } return f }
func (r Request) toLocalRequest() request { return request{myJson.FromGraphTask(r.Task)} }