def from_json(self, txt, **kwargs):
_dict = json.loads(txt)<EOL>return self.from_dict(_dict)<EOL>
Convert from a JSON string to an instance of this class.

:param txt: The JSON string (a ``str``, ``bytes`` or ``bytearray``
    instance containing a JSON document)
:param kwargs: extra keyword arguments
:return: The instantiated instance