class_docstr: TagChangeData
class_docstr_tok: ["TagChangeData"]
docstr: Create an instance of TagChangeData from a dict
docstr_tok: ["Create","an","instance","of","TagChangeData","from","a","dict"]
code: def from_dict(cls, obj: dict) -> TagChangeData:
      """Create an instance of TagChangeData from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return TagChangeData.parse_obj(obj)
  
      _obj = TagChangeData.parse_obj(
          {
              "initial": TagChangeDataInitial.from_dict(
                  obj.get("initial")
              )
              if obj.get("initial") is not None
              else None,
              "rename": TagChangeDataRename.from_dict(obj.get("rename"))
              if obj.get("rename") is not None
              else None,
              "upsize": TagChangeDataUpsize.from_dict(obj.get("upsize"))
              if obj.get("upsize") is not None
              else None,
              "arithmetics": TagChangeDataArithmetics.from_dict(
                  obj.get("arithmetics")
              )
              if obj.get("arithmetics") is not None
              else None,
              "metadata": TagChangeDataMetadata.from_dict(
                  obj.get("metadata")
              )
              if obj.get("metadata") is not None
              else None,
              "samples": TagChangeDataSamples.from_dict(
                  obj.get("samples")
              )
              if obj.get("samples") is not None
              else None,
              "scatterplot": TagChangeDataScatterplot.from_dict(
                  obj.get("scatterplot")
              )
              if obj.get("scatterplot") is not None
              else None,
              "sampler": TagChangeDataSampler.from_dict(
                  obj.get("sampler")
              )
              if obj.get("sampler") is not None
              else None,
          }
      )
      # store additional fields in additional_properties
      for _key in obj.keys():
          if _key not in cls.__properties:
              _obj.additional_properties[_key] = obj.get(_key)
  
      return _obj
  
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import Optional
  from pydantic import Extra, BaseModel
  from lightly.openapi_generated.swagger_client.models.tag_change_data_arithmetics import TagChangeDataArithmetics
  from lightly.openapi_generated.swagger_client.models.tag_change_data_initial import TagChangeDataInitial
  from lightly.openapi_generated.swagger_client.models.tag_change_data_metadata import TagChangeDataMetadata
  from lightly.openapi_generated.swagger_client.models.tag_change_data_rename import TagChangeDataRename
  from lightly.openapi_generated.swagger_client.models.tag_change_data_sampler import TagChangeDataSampler
  from lightly.openapi_generated.swagger_client.models.tag_change_data_samples import TagChangeDataSamples
  from lightly.openapi_generated.swagger_client.models.tag_change_data_scatterplot import TagChangeDataScatterplot
  from lightly.openapi_generated.swagger_client.models.tag_change_data_upsize import TagChangeDataUpsize
label_desc: Use image node_id 5 for calling the TagChangeData obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, TagChangeData