Define the State
The smart contract state storage on the host consists of a single key/value map, as long as you access the data in the same way that you used to store it, you will always get valid data back.
The smart contract state storage on the host consists of a single key/value map, as long as you access the data in the same way that you used to store it, you will always get valid data back.
You can use structs directly as a type in state storage definitions and the schema tool will automatically generate the proxy code to access it properly.