PreviewCredential constructor

PreviewCredential({
  1. String? id,
  2. required List<PreviewCredentialAttribute> attributes,
  3. String? replyUrl,
  4. List<String>? replyTo,
  5. String? parentThreadId,
  6. String? threadId,
  7. String? from,
  8. List<String>? to,
  9. DateTime? createdTime,
  10. DateTime? expiresTime,
  11. bool pleaseAck = false,
  12. FromPriorJWT? fromPrior,
  13. Map<String, dynamic>? additionalHeaders,
  14. WebRedirect? webRedirect,
  15. ReturnRouteValue? returnRoute,
  16. 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});