docs: def _from_dict(cls, _dict):
          """Initialize a SyntaxResult object from a json dictionary."""
          args = {}
          if 'tokens' in _dict:
              args['tokens'] = [
                  TokenResult._from_dict(x) for x in (_dict.get('tokens'))
              ]
          if 'sentences' in _dict:
              args['sentences'] = [
                  SentenceResult._from_dict(x) for x in (_dict.get('sentences'))
              ]
          return cls(**args)