parse

fun parse(json: JsonObject): DidDocument

Parses a DID document from a JSON object.

Return

Parsed DidDocument

Parameters

json

JSON object containing the DID document (e.g. from Universal Resolver or registrar)

Throws

if document is missing required "id" or otherwise invalid