You can also make a `classmethod` in the class that takes the json string and produces an instance. I think XBlock uses something similar.