Class Jsonization.Serialize
Serialize instances of meta-model classes to JSON elements.
Inheritance
System.Object
Jsonization.Serialize
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: AasCore.Aas3_0_RC02.dll
Syntax
public static class Serialize
Examples
Here is an example how to serialize an instance of IHasSemantics:
var anInstance = new Aas.IHasSemantics(
// ... some constructor arguments ...
);
System.Text.Json.Nodes.JsonObject element = (
Serialize.ToJsonObject(
anInstance));
Methods
|
Improve this Doc
View Source
AasSubmodelElementsToJsonValue(AasSubmodelElements)
Serialize a literal of AasSubmodelElements into a JSON string.
Declaration
public static JsonValue AasSubmodelElementsToJsonValue(AasSubmodelElements that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
AssetKindToJsonValue(AssetKind)
Serialize a literal of AssetKind into a JSON string.
Declaration
public static JsonValue AssetKindToJsonValue(AssetKind that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
DataTypeDefXsdToJsonValue(DataTypeDefXsd)
Serialize a literal of DataTypeDefXsd into a JSON string.
Declaration
public static JsonValue DataTypeDefXsdToJsonValue(DataTypeDefXsd that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
DataTypeIec61360ToJsonValue(DataTypeIec61360)
Serialize a literal of DataTypeIec61360 into a JSON string.
Declaration
public static JsonValue DataTypeIec61360ToJsonValue(DataTypeIec61360 that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
DirectionToJsonValue(Direction)
Serialize a literal of Direction into a JSON string.
Declaration
public static JsonValue DirectionToJsonValue(Direction that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
EntityTypeToJsonValue(EntityType)
Serialize a literal of EntityType into a JSON string.
Declaration
public static JsonValue EntityTypeToJsonValue(EntityType that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
KeyTypesToJsonValue(KeyTypes)
Serialize a literal of KeyTypes into a JSON string.
Declaration
public static JsonValue KeyTypesToJsonValue(KeyTypes that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
LevelTypeToJsonValue(LevelType)
Serialize a literal of LevelType into a JSON string.
Declaration
public static JsonValue LevelTypeToJsonValue(LevelType that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
ModelingKindToJsonValue(ModelingKind)
Serialize a literal of ModelingKind into a JSON string.
Declaration
public static JsonValue ModelingKindToJsonValue(ModelingKind that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
QualifierKindToJsonValue(QualifierKind)
Serialize a literal of QualifierKind into a JSON string.
Declaration
public static JsonValue QualifierKindToJsonValue(QualifierKind that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
ReferenceTypesToJsonValue(ReferenceTypes)
Serialize a literal of ReferenceTypes into a JSON string.
Declaration
public static JsonValue ReferenceTypesToJsonValue(ReferenceTypes that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
StateOfEventToJsonValue(StateOfEvent)
Serialize a literal of StateOfEvent into a JSON string.
Declaration
public static JsonValue StateOfEventToJsonValue(StateOfEvent that)
Parameters
Returns
Type |
Description |
System.Text.Json.Nodes.JsonValue |
|
|
Improve this Doc
View Source
ToJsonObject(IClass)
Serialize an instance of the meta-model into a JSON object.
Declaration
public static JsonObject ToJsonObject(IClass that)
Parameters
Type |
Name |
Description |
IClass |
that |
|
Returns
Type |
Description |
System.Text.Json.Nodes.JsonObject |
|