toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (ruleIdMatched != null) 'ruleIdMatched': ruleIdMatched,
if (matchedSourceType != null)
'matchedSourceType': matchedSourceType!.toJson(),
if (actualSourceType != null)
'actualSourceType': actualSourceType!.toJson(),
};
}