Map<String, dynamic> toJson() { final filter = this.filter; final ruleName = this.ruleName; return { 'filter': filter, 'ruleName': ruleName, }; }