from Json
Parses a JSON string into a VerifiableCredential instance.
Return
A VerifiableCredential instance derived from the JSON.
Parameters
vc Json
The verifiable credential JSON as a String.
Throws
if the credential within vcJson does not conform to the W3C Verifiable Credential Data Model 1.1 as specified in https://www.w3.org/TR/vc-data-model/.
Example:
val vc = VerifiableCredential.fromJson(vcJsonString)
Content copied to clipboard