IssuedCredentialBase class
The members of an issuance receipt, deliberately left open so a consuming
specification can $ref it under allOf and add its own, then close the result
with unevaluatedProperties: false. A closure inside this definition would defeat
that. Both additionalProperties and unevaluatedProperties are evaluated against
the whole instance from within the subschema that declares them, and neither can
see members the outer schema matched — so either one here rejects the consumer's
extras. Only an unevaluatedProperties at the outer level sees everything the
composition matched. Use IssuedCredential where a closed standalone shape is
wanted.
Constructors
-
IssuedCredentialBase({required CredentialId credentialId, required Map<
String, dynamic> credential, String? issuedAt, required String expiresAt}) -
const
-
IssuedCredentialBase.fromJson(Map<
String, dynamic> json) -
Read this payload from a decoded JSON object.
factory
Properties
-
credential
→ Map<
String, dynamic> -
The issued Verifiable Credential (W3C VC Data Model 2.0), signed by the issuer's
key. Opaque to the framework.
final
- credentialId → CredentialId
-
final
- expiresAt → CredentialId
-
When the credential's validUntil falls due.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- issuedAt → String?
-
When the credential was minted.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to a JSON-encodable map, omitting absent members.
-
toString(
) → CredentialId -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited