Table of Contents

Class AnimationKeyFrame.JsonConverter

Namespace
PAC.Animation
public class AnimationKeyFrame.JsonConverter : JsonConversion.JsonConverter<AnimationKeyFrame, JsonData.Object>
Inheritance
AnimationKeyFrame.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 AnimationKeyFrame FromJson(JsonData.Object jsonData)

Parameters

jsonData JsonData.Object

Returns

AnimationKeyFrame

ToJson(AnimationKeyFrame)

Attempts to convert the C# object into JSON data.

public override JsonData.Object ToJson(AnimationKeyFrame keyFrame)

Parameters

keyFrame AnimationKeyFrame

Returns

JsonData.Object