Class ContextEntity
public class ContextEntity : Entity
- Inheritance
-
ContextEntity
- Derived
- Inherited Members
Constructors
ContextEntity()
public ContextEntity()
ContextEntity(ROCrate?, string?, JsonObject?)
public ContextEntity(ROCrate? crate = null, string? identifier = null, JsonObject? properties = null)
Parameters
crate
ROCrateidentifier
stringproperties
JsonObject
Methods
Deserialize(string, ROCrate)
Create a ContextEntity from JSON properties.
public static ContextEntity? Deserialize(string entityJson, ROCrate roCrate)
Parameters
entityJson
stringThe JSON representing the ContextEntity
roCrate
ROCrateThe RO-Crate for the ContextEntity
Returns
- ContextEntity
The deserialised ContextEntity
Serialize()
Convert ContextEntity to JSON string.
public override string Serialize()
Returns
- string
The ContextEntity as a JSON string.