to_flat_dict

negmas.serialization.to_flat_dict(value, deep=True, add_type_field=False)[source]

Encodes the given value as a flat dictionary

Parameters
  • value – The value to be converted to a flat dictionary

  • deep – Converting all sub-objects

  • add_type_field – If true, a special field for the object type will be added

Returns:

Return type

Dict[str, Any]