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