hasType

Check if a credential has a specific type.

Example:

if (credential.hasType("UniversityDegreeCredential")) {
println("This is a university degree credential")
}

Return

True if the credential has the specified type

Parameters

typeString

The type string to check for