from Message
Converts a Message object to a RequestCredential object.
Return
The converted RequestCredential object.
Parameters
from Message
The Message object to convert.
Throws
If the Message object does not represent the expected protocol or is missing the "from" and "to" fields.