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,
    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);