class_docstr: Embedding2dData
class_docstr_tok: ["Embedding2dData"]
docstr: Create an instance of Embedding2dData from a dict
docstr_tok: ["Create","an","instance","of","Embedding2dData","from","a","dict"]
code: def from_dict(cls, obj: dict) -> Embedding2dData:
      """Create an instance of Embedding2dData from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return Embedding2dData.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 Embedding2dData) in the input: "
                  + str(obj)
              )
  
      _obj = Embedding2dData.parse_obj(
          {
              "id": obj.get("id"),
              "dataset_id": obj.get("datasetId"),
              "embedding_id": obj.get("embeddingId"),
              "name": obj.get("name"),
              "created_at": obj.get("createdAt"),
              "dimensionality_reduction_method": obj.get(
                  "dimensionalityReductionMethod"
              ),
              "coordinates_dimension1": obj.get(
                  "coordinatesDimension1"
              ),
              "coordinates_dimension2": obj.get(
                  "coordinatesDimension2"
              ),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/embedding2d_data.py
imports: from __future__ import annotations
  import pprint
  import re
  import json
  from typing import List, Optional, Union
  from pydantic import Extra, BaseModel, Field, StrictFloat, StrictInt, StrictStr, conint, conlist, constr, validator
  from lightly.openapi_generated.swagger_client.models.dimensionality_reduction_method import DimensionalityReductionMethod
label_desc: Use image node_id 8 for calling the Embedding2dData obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, Embedding2dData