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