class_docstr: TagData
class_docstr_tok: ["TagData"]
docstr: Create an instance of TagData from a dict
docstr_tok: ["Create","an","instance","of","TagData","from","a","dict"]
code: def from_dict(cls, obj: dict) -> TagData:
      """Create an instance of TagData from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return TagData.parse_obj(obj)
  
      # raise errors for additional fields in the input
      for _key in obj.keys():
          if _key not in cls.__properties:
              raise ValueError(
                  "Error due to additional fields (not defined in TagData) in the input: "
                  + str(obj)
              )
  
      _obj = TagData.parse_obj(
          {
              "id": obj.get("id"),
              "dataset_id": obj.get("datasetId"),
              "prev_tag_id": obj.get("prevTagId"),
              "query_tag_id": obj.get("queryTagId"),
              "preselected_tag_id": obj.get("preselectedTagId"),
              "name": obj.get("name"),
              "bit_mask_data": obj.get("bitMaskData"),
              "tot_size": obj.get("totSize"),
              "created_at": obj.get("createdAt"),
              "last_modified_at": obj.get("lastModifiedAt"),
              "changes": [
                  TagChangeEntry.from_dict(_item)
                  for _item in obj.get("changes")
              ]
              if obj.get("changes") is not None
              else None,
              "run_id": obj.get("runId"),
          }
      )
      return _obj
  
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Optional
  from pydantic import Extra, BaseModel, Field, StrictInt, conint, conlist, constr, validator
  from lightly.openapi_generated.swagger_client.models.tag_change_entry import TagChangeEntry
label_desc: Use image node_id 13 for calling the TagData obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, TagData