roundTripJsonLd

Round-trip transformation: credential -> JSON-LD -> credential.

Useful for testing that JSON-LD transformation preserves all credential data.

Example:

val recovered = credential.roundTripJsonLd()
assertEquals(credential.id, recovered.id)

Return

Credential recovered from JSON-LD transformation