DidcommPlaintextMessage constructor

DidcommPlaintextMessage({
  1. required String id,
  2. required String type,
  3. required Map<String, dynamic> body,
  4. String? replyUrl,
  5. List<String>? replyTo,
  6. DidcommMessageTyp? typ,
  7. String? threadId,
  8. String? parentThreadId,
  9. DateTime? createdTime,
  10. DateTime? expiresTime,
  11. List? to,
  12. String? from,
  13. FromPriorJWT? fromPrior,
  14. List<Attachment>? attachments,
  15. bool pleaseAck = false,
  16. List<String>? ack,
  17. WebRedirect? webRedirect,
  18. Map<String, dynamic>? additionalHeaders,
  19. 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;
}