Table of Contents

Class TestService

Namespace
ROCrates.Models
Assembly
ROCrates.Net.dll
public class TestService : ContextEntity
Inheritance
TestService
Inherited Members

Constructors

TestService()

public TestService()

TestService(ROCrate?, string?, JsonObject?)

public TestService(ROCrate? crate = null, string? identifier = null, JsonObject? properties = null)

Parameters

crate ROCrate
identifier string
properties JsonObject

Properties

Name

public string? Name { get; set; }

Property Value

string

Url

public string? Url { get; set; }

Property Value

string

Methods

Deserialize(string, ROCrate)

Create a TestService from JSON properties.

public static TestService? Deserialize(string entityJson, ROCrate roCrate)

Parameters

entityJson string

The JSON representing the TestService

roCrate ROCrate

The RO-Crate for the TestService

Returns

TestService

The deserialised TestService

Serialize()

Convert TestService to JSON string.

public override string Serialize()

Returns

string

The TestService as a JSON string.