to_flat_dict
- negmas.serialization.to_flat_dict(value, deep=True, add_type_field=False, shorten_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
shorten_type_field – If true, the type field will be shortened to just class name if it is defined in NegMAS
- Return type:
Returns: