PreviewCredential constructor
PreviewCredential({
- String? id,
- required List<
PreviewCredentialAttribute> attributes, - String? replyUrl,
- List<
String> ? replyTo, - String? parentThreadId,
- String? threadId,
- String? from,
- List<
String> ? to, - DateTime? createdTime,
- DateTime? expiresTime,
- bool pleaseAck = false,
- FromPriorJWT? fromPrior,
- Map<
String, dynamic> ? additionalHeaders, - WebRedirect? webRedirect,
- ReturnRouteValue? returnRoute,
- DidcommMessageTyp? typ,
Implementation
PreviewCredential(
{String? id,
required this.attributes,
super.replyUrl,
super.replyTo,
super.parentThreadId,
super.threadId,
super.from,
List<String>? super.to,
super.createdTime,
super.expiresTime,
super.pleaseAck,
super.fromPrior,
super.additionalHeaders,
super.webRedirect,
super.returnRoute,
super.typ})
: super(
id: id ?? Uuid().v4(),
type: DidcommMessages.previewCredential,
body: {'attributes': attributes});