core.Map<core.String, core.dynamic> toJson() => { if (googleRe2 != null) 'googleRe2': googleRe2!, if (regex != null) 'regex': regex!, };