Map<String, dynamic> toJson() { final action = this.action; final regexPatternString = this.regexPatternString; return { 'Action': action.toValue(), 'RegexPatternString': regexPatternString, }; }