Class Layer.JsonConverter
public class Layer.JsonConverter : JsonConversion.JsonConverter<Layer, JsonData.Object>
- Inheritance
-
Layer.JsonConverter
- Inherited Members
Constructors
JsonConverter(SemanticVersion)
public JsonConverter(SemanticVersion fromJsonFileFormatVersion)
Parameters
fromJsonFileFormatVersion
SemanticVersion
Methods
FromJson(Object)
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 Layer FromJson(JsonData.Object jsonData)
Parameters
Returns
ToJson(Layer)
This currently can't be used since JsonConversion.ToJson() only works on concrete types, but Layer is abstract so you cannot have an object without concrete type Layer.
public override JsonData.Object ToJson(Layer obj)
Parameters
obj
Layer