Class FileOrDir
public class FileOrDir : DataEntity- Inheritance
- 
      
      
      
      FileOrDir
- Derived
- Inherited Members
Constructors
FileOrDir()
public FileOrDir()FileOrDir(ROCrate?, string?, JsonObject?, string?, string?, bool, bool)
public FileOrDir(ROCrate? crate = null, string? identifier = null, JsonObject? properties = null, string? source = null, string? destPath = null, bool fetchRemote = false, bool validateUrl = false)Parameters
- crateROCrate
- identifierstring
- propertiesJsonObject
- sourcestring
- destPathstring
- fetchRemotebool
- validateUrlbool
Fields
_destPath
protected string? _destPathField Value
_fetchRemote
protected bool _fetchRemoteField Value
_source
protected string _sourceField Value
_validateUrl
protected bool _validateUrlField Value
Methods
Deserialize(string, ROCrate)
Create a FileOrDir from JSON properties.
public static FileOrDir? Deserialize(string entityJson, ROCrate roCrate)Parameters
- entityJsonstring
- The JSON representing the FileOrDir 
- roCrateROCrate
- The RO-Crate for the FileOrDir 
Returns
Serialize()
Convert FileOrDir to JSON string.
public override string Serialize()