parameters: (obj, *, dict_factory=dict)
return_statement: return _asdict_inner(obj, dict_factory)
docstring: Return the fields of a dataclass instance as a new dictionary mapping
      field names to field values.
  
      Example usage:
  
        @dataclass
        class C:
            x: int
            y: int
  
        c = C(1, 2)
        assert asdict(c) == {'x': 1, 'y': 2}
  
      If given, 'dict_factory' will be used instead of built-in dict.
      The function applies recursively to field values that are
      dataclass instances. This will also look into built-in containers:
      tuples, lists, and dicts.
docstring_summary: Return the fields of a dataclass instance as a new dictionary mapping
      field names to field values.
docstring_tokens: Return the fields of a dataclass instance as a new dictionary mapping field names to field values .
function: def asdict(obj, *, dict_factory=dict):
      """Return the fields of a dataclass instance as a new dictionary mapping
      field names to field values.
  
      Example usage:
  
        @dataclass
        class C:
            x: int
            y: int
  
        c = C(1, 2)
        assert asdict(c) == {'x': 1, 'y': 2}
  
      If given, 'dict_factory' will be used instead of built-in dict.
      The function applies recursively to field values that are
      dataclass instances. This will also look into built-in containers:
      tuples, lists, and dicts.
      """
      if not _is_dataclass_instance(obj):
          raise TypeError("asdict() should be called on dataclass instances")
      return _asdict_inner(obj, dict_factory)
function_tokens: def asdict ( obj , * , dict_factory = dict ) : if not _is_dataclass_instance ( obj ) : raise TypeError ( "asdict() should be called on dataclass instances" ) return _asdict_inner ( obj , dict_factory )