Returns a JSON representation of FilesUploadResult.
Map<String, dynamic> toJson() { return {'Uploaded': uploaded, 'Errors': errors}; }