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