DidcommPlaintextMessage constructor
DidcommPlaintextMessage({
- required String id,
- required String type,
- required Map<
String, dynamic> body, - String? replyUrl,
- List<
String> ? replyTo, - DidcommMessageTyp? typ,
- String? threadId,
- String? parentThreadId,
- DateTime? createdTime,
- DateTime? expiresTime,
- List? to,
- String? from,
- FromPriorJWT? fromPrior,
- List<
Attachment> ? attachments, - bool pleaseAck = false,
- List<
String> ? ack, - WebRedirect? webRedirect,
- Map<
String, dynamic> ? additionalHeaders, - ReturnRouteValue? returnRoute,
Implementation
DidcommPlaintextMessage(
{required this.id,
required this.type,
required this.body,
this.replyUrl,
this.replyTo,
this.typ,
String? threadId,
this.parentThreadId,
this.createdTime,
this.expiresTime,
this.to,
this.from,
this.fromPrior,
this.attachments,
bool pleaseAck = false,
this.ack,
this.webRedirect,
this.additionalHeaders,
this.returnRoute}) {
if (pleaseAck) this.pleaseAck = [id];
this.threadId = threadId ?? id;
}