DiscloseMessage constructor
DiscloseMessage({
- String? id,
- String? parentThreadId,
- List<
String> ? ack, - required List<
Disclosure> disclosures, - String? replyUrl,
- List<
String> ? replyTo, - 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
DiscloseMessage(
{String? id,
super.parentThreadId,
super.ack,
required this.disclosures,
super.replyUrl,
super.replyTo,
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.discoverFeatureDisclose,
body: {}) {
List<Map<String, dynamic>> d = [];
for (var dis in disclosures) {
d.add(dis.toJson());
}
body['disclosures'] = d;
}