VECTO Input Manager
Loading...
Searching...
No Matches
VectoInputManager.Core.JsonInputUtils Class Reference

Provides JSON serialization and deserialization utilities for component input data files. These files contain user-provided parameters for generating standard value components. More...

Static Public Member Functions

static string Serialize (BaseInput obj, bool addSchema)
 Serializes a component input object to JSON format.
static BaseInput Deserialize (string json)
 Deserializes a JSON string to a component input object. The JSON must contain a "Component" property to determine the concrete type.

Detailed Description

Provides JSON serialization and deserialization utilities for component input data files. These files contain user-provided parameters for generating standard value components.

Member Function Documentation

◆ Deserialize()

BaseInput VectoInputManager.Core.JsonInputUtils.Deserialize ( string json)
inlinestatic

Deserializes a JSON string to a component input object. The JSON must contain a "Component" property to determine the concrete type.

Parameters
jsonThe JSON string to deserialize.
Returns
The deserialized BaseInput-derived object.

◆ Serialize()

string VectoInputManager.Core.JsonInputUtils.Serialize ( BaseInput obj,
bool addSchema )
inlinestatic

Serializes a component input object to JSON format.

Parameters
objThe BaseInput-derived object to serialize.
addSchemaWhether to include a $schema property referencing the JSON schema URL.
Returns
The JSON string representation.

The documentation for this class was generated from the following file:
  • VectoInputManagerCore/Json/JsonInputUtils.cs