code: def _sync_notes(self, notes_json):
          Populate the user's notes from a JSON encoded list."""
          for note_json in notes_json:
              note_id = note_json['id']
              task_id = note_json['item_id']
              if task_id not in self.tasks:
                  # ignore orphan notes
                  continue
              task = self.tasks[task_id]
              self.notes[note_id] = Note(note_json, task)
docs: Populate the user's notes from a JSON encoded list.