from Message
Converts a Message object to an OfferCredential object.
Return
The converted OfferCredential object.
Parameters
from Message
The Message object to convert.
Throws
if the message type is invalid or the "from" and "to" fields are not present.