toJson method

Map toJson()

Serialize instance to JSON Object

Implementation

Map toJson() {
  Map fromObject = {
    "requestId": requestId,
    "visitorId": visitorId,
    "confidenceScore": confidenceScore.toJson(),
    "sealedResult": sealedResult
  };

  return fromObject;
}