toJson method
Implementation
Map<String, dynamic> toJson() {
final name = this.name;
final classification = this.classification;
final customPatterns = this.customPatterns;
final grokPattern = this.grokPattern;
return {
'Name': name,
if (classification != null) 'Classification': classification,
if (customPatterns != null) 'CustomPatterns': customPatterns,
if (grokPattern != null) 'GrokPattern': grokPattern,
};
}