DID

fromDidDocument()

public fromDidDocument(xxx): xxx {
    // -- snip --
}

getDocument()

public getDocument(): DidDocument {
    // -- snip --
}