fromMessage

Converts a Message into an IssueCredential object.

Return

The converted IssueCredential object.

Parameters

fromMessage

The Message object to convert.

Throws

if the fromMessage doesn't represent the DidcommIssueCredential protocol, or if it doesn't have "from" and "to" fields.