transform
suspend fun VerifiableCredential.transform(block: suspend CredentialTransformationBuilder.() -> Unit): TransformResult
Transform credential using DSL builder.
Example:
val result = credential.transform {
toJwt()
}
val jwt = (result as TransformResult.Jwt).valueContent copied to clipboard
Return
The typed result of the transformation.
Parameters
block
DSL block for specifying transformation; the value it produces determines the returned TransformResult variant.
Throws
if the block does not perform a transformation.