Message object does not recognize text attribute in Custom Component for RASA 2.0

Apparently the Message object has changed whereas the “text” is available in the data dict attribute of the Message object.