Search Results for

    Show / Hide Table of Contents

    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()
    Namespace: AasCore.Aas3_0
    Assembly: AasCore.Aas3_0.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
    Type Name Description
    AasSubmodelElements that
    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
    Type Name Description
    AssetKind that
    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
    Type Name Description
    DataTypeDefXsd that
    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
    Type Name Description
    DataTypeIec61360 that
    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
    Type Name Description
    Direction that
    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
    Type Name Description
    EntityType that
    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
    Type Name Description
    KeyTypes that
    Returns
    Type Description
    System.Text.Json.Nodes.JsonValue
    | Improve this Doc View Source

    ModellingKindToJsonValue(ModellingKind)

    Serialize a literal of ModellingKind into a JSON string.

    Declaration
    public static JsonValue ModellingKindToJsonValue(ModellingKind that)
    Parameters
    Type Name Description
    ModellingKind that
    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
    Type Name Description
    QualifierKind that
    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
    Type Name Description
    ReferenceTypes that
    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
    Type Name Description
    StateOfEvent that
    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
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX