I modified the method which returns the dictinary of object no matter it has compostioan of other objects(model)