Serialize the state of this resource and all children.
Use pylabrobot.resources.resource.Resource.serialize_state()
to serialize the state of
this resource only.
- Returns:
A dictionary where the keys are the names of the resources and the values are the serialized
states of the resources.
- Return type:
Dict[str, Dict[str, Any]]