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