OID4VCICredentialOffer class
Represents a credential offer from an issuer.
This class contains the necessary information to claim a credential, including the pre-authorization code, credential identifier, and whether a transaction code is required for the claim process.
Example:
final offer = OID4VCICredentialOffer(
credentialIdentifier: 'credential123',
preAuthCode: 'auth456',
isTxCodeRequired: false,
);
Constructors
- OID4VCICredentialOffer({required String preAuthCode, required String credentialIdentifier, required bool isTxCodeRequired})
-
Creates a new OID4VCICredentialOffer instance.
const
-
OID4VCICredentialOffer.fromJson(Map<
String, dynamic> json) -
Creates a OID4VCICredentialOffer instance from json data
factory
Properties
- credentialIdentifier → String
-
The unique identifier for the credential being offered.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTxCodeRequired → bool
-
Whether a transaction code is required to claim the credential.
final
- preAuthCode → String
-
The pre-authorized code required to claim the credential.
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
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited