fromMessage

Converts a Message object to a RequestCredential object.

Return

The converted RequestCredential object.

Parameters

fromMessage

The Message object to convert.

Throws

If the Message object does not represent the expected protocol or is missing the "from" and "to" fields.