Added a to_dict example to the README