def METHOD_NAME(self, rows):
    for row in rows:
        if isinstance(row, Object):
            self.objects[(row.name, row.class_name)] = row.id
            self.states[row.id] = {}
    for row in rows:
        if isinstance(row, ObjectState):
            assert row.objectid in list(self.objects.values())
            self.states[row.objectid][row.name] = row.value_json