toJson method
Implementation
Map<String, dynamic> toJson() {
final pattern = this.pattern;
final type = this.type;
final excludeMatchedPattern = this.excludeMatchedPattern;
return {
'pattern': pattern,
'type': type.toValue(),
if (excludeMatchedPattern != null)
'excludeMatchedPattern': excludeMatchedPattern,
};
}