Class JsonObject
JsonObject class for encapsulating generic object types. We use this to hide internal Json implementation details.
Namespace: Unity.Services.Lobbies.Http
Syntax
[Preserve]
public class JsonObject
Methods
GetAs<T>(DeserializationSettings)
Returns the object as a defined type.
Declaration
public 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 | The internal object case to type T. |
Type Parameters
Name | Description |
---|---|
T | The type to cast internal object to. |
GetAsString()
Returns the internal object as a string.
Declaration
public string GetAsString()
Returns
Type | Description |
---|---|
String | The internal object as a string. |