Table of Contents

Class JsonConverters.ColorJsonConverter

Namespace
PAC.Extensions

Custom JSON converter for Color.

public class JsonConverters.ColorJsonConverter : JsonConversion.JsonConverter<Color, JsonData.List>
Inheritance
JsonConverters.ColorJsonConverter
Inherited Members

Methods

FromJson(List)

Attempts to convert the JSON data into a C# object of the given type.

NOTE: JsonConverter has a default implementation for an overload FromJson(JsonData jsonData) that ensures it is of type JsonDataType before calling the specific overload FromJSON(JsonDataType jsonData).

public override Color FromJson(JsonData.List jsonData)

Parameters

jsonData JsonData.List

Returns

Color

ToJson(Color)

Attempts to convert the C# object into JSON data.

public override JsonData.List ToJson(Color color)

Parameters

color Color

Returns

JsonData.List