v1.2.1
Latest
2020.3+

Interface IDeserializable

IDeserializable is an interface for wrapping generic objects that might be returned as part of HTTP requests.

Namespace: Unity.Services.Lobbies.Http
Syntax
[Preserve]
public interface IDeserializable

Methods

GetAs<T>(DeserializationSettings)

Gets this object as the given type.

Declaration
T GetAs<T>(DeserializationSettings deserializationSettings = null)
Parameters
TypeNameDescription
DeserializationSettingsdeserializationSettings

Deserialization settings for how to handle properties like missing members.

Returns
TypeDescription
T

This object as the given type.

Type Parameters
NameDescription
T

The type you want to convert this object to.

GetAsString()

Returns the internal object as a string.

Declaration
string GetAsString()
Returns
TypeDescription
String

The internal object as a string.