toJSON() {
    const rows = {}
    for (let id of this.ids) rows[id] = this.byId(id)
    return rows
  }
Returns an object containing the table entries, indexed by objectID,
for serializing an Automerge document to JSON.