Returns the config of the object.
An object config is a Python dictionary (serializable) containing the information needed to re-instantiate it.