class_docstr: TagArithmeticsResponse
class_docstr_tok: ["TagArithmeticsResponse"]
docstr: Returns the object represented by the json string
docstr_tok: ["Returns","the","object","represented","by","the","json","string"]
code: def from_json(cls, json_str: str) -> TagArithmeticsResponse:
      """Returns the object represented by the json string"""
      instance = TagArithmeticsResponse.construct()
      error_messages = []
      match = 0
  
      # deserialize data into CreateEntityResponse
      try:
          instance.actual_instance = CreateEntityResponse.from_json(
              json_str
          )
          match += 1
      except (ValidationError, ValueError) as e:
          error_messages.append(str(e))
      # deserialize data into TagBitMaskResponse
      try:
          instance.actual_instance = TagBitMaskResponse.from_json(
              json_str
          )
          match += 1
      except (ValidationError, ValueError) as e:
          error_messages.append(str(e))
  
      if match > 1:
          # more than 1 match
          raise ValueError(
              "Multiple matches found when deserializing the JSON string into TagArithmeticsResponse with oneOf schemas: CreateEntityResponse, TagBitMaskResponse. Details: "
              + ", ".join(error_messages)
          )
      elif match == 0:
          # no match
          raise ValueError(
              "No match found when deserializing the JSON string into TagArithmeticsResponse with oneOf schemas: CreateEntityResponse, TagBitMaskResponse. Details: "
              + ", ".join(error_messages)
          )
      else:
          return instance
  
imports: from __future__ import annotations
  from inspect import getfullargspec
  import json
  import pprint
  import re
  from typing import Any, List, Optional
  from pydantic import BaseModel, Field, StrictStr, ValidationError, validator
  from lightly.openapi_generated.swagger_client.models.create_entity_response import CreateEntityResponse
  from lightly.openapi_generated.swagger_client.models.tag_bit_mask_response import TagBitMaskResponse
  from typing import Any, List
  from pydantic import StrictStr, Field, Extra
label_desc: Use image node_id 4 for calling the TagArithmeticsResponse obj's underlying member method code with example usage: obj.from_json(cls, json_str) and returns: instance