ProblemReport constructor
ProblemReport({
- String? id,
- required String parentThreadId,
- List<
String> ? ack, - required String code,
- String? comment,
- List<
String> ? args, - String? escalateTo,
- 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, - DidcommMessageTyp? typ,
- WebRedirect? webRedirect,
- ReturnRouteValue? returnRoute,
Implementation
ProblemReport({
String? id,
required String super.parentThreadId,
super.ack,
required this.code,
this.comment,
this.args,
this.escalateTo,
super.replyUrl,
super.replyTo,
super.threadId,
super.from,
List<String>? super.to,
super.createdTime,
super.expiresTime,
super.pleaseAck,
super.fromPrior,
super.additionalHeaders,
super.typ,
super.webRedirect,
super.returnRoute,
}) : super(
id: id ?? Uuid().v4(),
type: DidcommMessages.problemReport,
body: {}) {
body['code'] = code;
if (comment != null) body['comment'] = comment;
if (args != null) body['args'] = args;
if (escalateTo != null) body['escalated_to'] = escalateTo;
}