Provides JSON serialization and deserialization utilities for component input data files. These files contain user-provided parameters for generating standard value components.
More...
|
| 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.
|
Provides JSON serialization and deserialization utilities for component input data files. These files contain user-provided parameters for generating standard value components.
◆ 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
-
| json | The 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
-
| obj | The BaseInput-derived object to serialize. |
| addSchema | Whether 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