toJson method
Implementation
Map<String, dynamic> toJson() {
final _json = <String, dynamic>{};
_json['finalDecision'] = v1OutcomeToJson(finalDecision);
if (matchedPolicyId != null) {
_json['matchedPolicyId'] = matchedPolicyId;
}
if (matchedPolicyName != null) {
_json['matchedPolicyName'] = matchedPolicyName;
}
if (reason != null) {
_json['reason'] = reason;
}
if (policyDetails != null) {
_json['policyDetails'] = policyDetails?.map((e) => e.toJson()).toList();
}
if (evaluatedCount != null) {
_json['evaluatedCount'] = evaluatedCount;
}
if (totalCount != null) {
_json['totalCount'] = totalCount;
}
return _json;
}