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,
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})
: super(
id: id ?? Uuid().v4(),
type: DidcommMessages.previewCredential.value,
body: {'attributes': attributes},
replyUrl: replyUrl,
replyTo: replyTo,
threadId: threadId,
parentThreadId: parentThreadId,
from: from,
to: to,
createdTime: createdTime,
expiresTime: expiresTime,
pleaseAck: pleaseAck,
fromPrior: fromPrior,
additionalHeaders: additionalHeaders,
webRedirect: webRedirect,
returnRoute: returnRoute,
typ: typ);