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