class_docstr: ProfileMeData
docstr: Create an instance of ProfileMeData from a dict
docstr_tok: ["Create","an","instance","of","ProfileMeData","from","a","dict"]
code: def from_dict(cls, obj: dict) -> ProfileMeData:
      """Create an instance of ProfileMeData from a dict"""
      if obj is None:
          return None
  
      if not isinstance(obj, dict):
          return ProfileMeData.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 ProfileMeData) in the input: "
                  + str(obj)
              )
  
      _obj = ProfileMeData.parse_obj(
          {
              "id": obj.get("id"),
              "user_type": obj.get("userType"),
              "email": obj.get("email"),
              "nickname": obj.get("nickname"),
              "name": obj.get("name"),
              "given_name": obj.get("givenName"),
              "family_name": obj.get("familyName"),
              "token": obj.get("token"),
              "created_at": obj.get("createdAt"),
              "teams": [
                  TeamBasicData.from_dict(_item)
                  for _item in obj.get("teams")
              ]
              if obj.get("teams") is not None
              else None,
              "settings": ProfileMeDataSettings.from_dict(
                  obj.get("settings")
              )
              if obj.get("settings") is not None
              else None,
              "onboarding": obj.get("onboarding"),
          }
      )
      return _obj
  
file_path: lightly/lightly/openapi_generated/swagger_client/models/profile_me_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
  from lightly.openapi_generated.swagger_client.models.profile_me_data_settings import ProfileMeDataSettings
  from lightly.openapi_generated.swagger_client.models.team_basic_data import TeamBasicData
  from lightly.openapi_generated.swagger_client.models.user_type import UserType
label_desc: Use image node_id 5 for calling the ProfileMeData obj's underlying member method code with example usage: obj.from_dict(cls, obj) and returns: _obj, None, ProfileMeData