toJson method
Serialize instance to JSON Object
Implementation
Map toJson() {
Map fromObject = {
"requestId": requestId,
"visitorId": visitorId,
"confidenceScore": confidenceScore.toJson(),
"sealedResult": sealedResult
};
return fromObject;
}