def get_state(self) -> entity_component.ComponentState:
    """Converts the component to JSON data."""
    with self._lock:
      return {
          'names_detected': self._names_detected,
      }
Converts the component to JSON data.
concordia/components/agent/deprecated/person_representation.py