Map<String, dynamic> toJson() { final regexString = this.regexString; return { if (regexString != null) 'RegexString': regexString, }; }