structs.to_dict

Converts a struct to a dict.

Parameters