Interface IDeserializable
IDeserializable is an interface for wrapping generic objects that might be returned as part of HTTP requests.
Namespace: Unity.Services.Lobbies.Http
Assembly: Unity.Services.Lobbies.dll
Syntax
[Preserve]
[JsonConverter(typeof(JsonObjectConverter))]
public interface IDeserializable
Methods
GetAsString()
Returns the internal object as a string.
Declaration
string GetAsString()
Returns
Type | Description |
---|---|
string | The internal object as a string. |
GetAs<T>(DeserializationSettings)
Gets this object as the given type.
Declaration
T GetAs<T>(DeserializationSettings deserializationSettings = null)
Parameters
Type | Name | Description |
---|---|---|
DeserializationSettings | deserializationSettings | Deserialization settings for how to handle properties like missing members. |
Returns
Type | Description |
---|---|
T | This object as the given type. |
Type Parameters
Name | Description |
---|---|
T | The type you want to convert this object to. |