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