# Add JSON converters for agent types and states · dara/icarus

[View on GitCafe](https://git.cafe/dara/icarus/commit/5511d4f9ce3177a3f10e8d6a529b763149d7f28c)

Repository: [dara/icarus](https://git.cafe/dara/icarus)

Visibility: public

Requested revision: 5511d4f9ce3177a3f10e8d6a529b763149d7f28c

Requested commit: 5511d4f9ce3177a3f10e8d6a529b763149d7f28c

Commit: 5511d4f9ce3177a3f10e8d6a529b763149d7f28c

Tree: ccb3fefb126c098c92a38c89914e2986d2af0b2c

Author: Dara Adedeji

Committer: Dara Adedeji

## Message

```
Add JSON converters for agent types and states

- Introduce `AgentTypeCompatConverter`, `AgentStateCompatConverter`, and `UtilityTypeCompatConverter` for handling JSON serialization and deserialization of agent-related enums.
- Refactor `OffsetConverter` to ensure proper type conversion from JSON.
- Remove legacy JSON conversion methods from `PlacedAgentNode` and streamline serialization using the new converters.
- Update `PlacedAgent`, `PlacedViewConeAgent`, and `PlacedCircleAgent` to utilize the new converters for improved type safety and clarity in JSON handling.

```

## Parents

- [f9b2058d48dc0652c6f91de45b995ac32c00e435](https://git.cafe/dara/icarus/commit/f9b2058d48dc0652c6f91de45b995ac32c00e435?format=markdown)

[Source at this commit](https://git.cafe/dara/icarus/tree/5511d4f9ce3177a3f10e8d6a529b763149d7f28c?format=markdown)
