tff.structure.to_odict

Returns struct as an collections.OrderedDict, if possible.

struct An Struct.
recursive Whether to convert nested Structs recursively.

ValueError If the Struct contains unnamed elements.