toJsonLd

suspend fun CredentialService.toJsonLd(credential: VerifiableCredential): JsonObject

Convert credential to JSON-LD format.

Example:

val jsonLd = credentialService.toJsonLd(credential)