ISerializator¶
Source:
Assets/UpscaleSDK/Core/Saves/Runtime/Serialization/ISerializator.cs
interface ISerializator¶
Defines the contract for the serializator.
Methods¶
public string Serialize<T>(T obj)¶
Serializes an object to a string.
Type parameters
T— The type of the object to serialize.
Parameters
| Name | Description |
|---|---|
obj |
The object to serialize. |
Returns: The serialized string representation of the object.
public T Deserialize<T>(string data)¶
Deserializes a string to an object.
Type parameters
T— The type of the object to deserialize to.
Parameters
| Name | Description |
|---|---|
data |
The string to deserialize. |
Returns: The deserialized object.