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