to_dict has a hard coded attribute order used when generating a dictionary to return, which is different from the order generated by directly accessing the class' dict attribute.
It might be easier to be consistent to have to_JSON call to_dict so they both generate the same order.
to_dict has a hard coded attribute order used when generating a dictionary to return, which is different from the order generated by directly accessing the class' dict attribute.
It might be easier to be consistent to have to_JSON call to_dict so they both generate the same order.