toJson method

Map<String, dynamic> toJson()

Implementation

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