toJSON method Null safety

Map<String, dynamic> toJSON()

Converts this MessageEnvelop to a JSON string. The message payload is passed as string Returns A JSON encoded representation is this object.