addClaim method

Credential<C> addClaim(
  1. C claim
)

Adds a claim to the credential and returns the updated credential.

Implementation

Credential<C> addClaim(C claim) {
  claims ??= [];
  claims?.add(claim);
  return this;
}