I have objects message of type azure.servicebus.common.message.Message. I can print it and get representation that looks like dictinorary.
print(message)
{b'Type': b'TEST', b'Subtype': b'subtype'}
print(type(message))
<class 'azure.servicebus.common.message.Message'>
print(dict(message))
TypeError: 'Message' object is not iterable
I would like to add dictionary representation of this object to the list, not the object like below
batch.append(message)
How to convert representation of the object to dictionary ?