Looking at that library’s github page there are several requests for a from_json function dating back several years.
There is even a pull request that implements it.
You might also want to check out Any Python Tree Data — anytree 2.8.0 documentation which looks like it has the to/from json functions implemented.