def METHOD_NAME(self, data):
    all_children = self.child.Meta.model.objects.all()
    values = list(data.values_list("id", flat=True))
    return [
        dict(type(self.child)(child).data) | {"selected": child.id in values}
        for child in all_children
    ]