Class AuthenticationErrorDetailsInnerJsonConverter
Custom JSON converter for AuthenticationErrorDetailsInner
Inherited Members
Namespace: Unity.Services.Apis.PlayerAuthentication
Assembly: Unity.Services.Apis.dll
Syntax
public class AuthenticationErrorDetailsInnerJsonConverter : JsonConverter
Methods
CanConvert(Type)
Check if the object can be converted
Declaration
public override bool CanConvert(Type objectType)
Parameters
Type | Name | Description |
---|---|---|
Type | objectType | Object type |
Returns
Type | Description |
---|---|
bool | True if the object can be converted |
Overrides
ReadJson(JsonReader, Type, object, JsonSerializer)
To convert a JSON string into an object
Declaration
public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Json |
reader | JSON reader |
Type | objectType | Object type |
object | existingValue | Existing value |
Json |
serializer | JSON Serializer |
Returns
Type | Description |
---|---|
object | The object converted from the JSON string |
Overrides
WriteJson(JsonWriter, object, JsonSerializer)
To write the JSON string
Declaration
public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
Json |
writer | JSON writer |
object | value | Object to be converted into a JSON string |
Json |
serializer | JSON Serializer |