Revert "refactor!: remove `encode_json` optional arg for `to_dict`"
Revert "refactor!: remove `encode_json` optional arg for `to_dict`"

This reverts commit 1887d996192048e2721a4b9587824e7f548b2475.

lidatong/dataclasses-json,lidatong/dataclasses-json