fromMessage

Converts a Message object to an OfferCredential object.

Return

The converted OfferCredential object.

Parameters

fromMessage

The Message object to convert.

Throws

if the message type is invalid or the "from" and "to" fields are not present.