toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (serviceContext != null) {
json[r'serviceContext'] = serviceContext?.toJson();
}
if (context != null) {
json[r'context'] = context?.toJson();
}
if (message != null) {
json[r'message'] = message;
}
return json;
}