Lean  $LEAN_TAG$
QuantConnect.Algorithm.Framework.Alphas.Serialization.InsightJsonConverter Class Reference

Defines how insights should be serialized to json More...

Inheritance diagram for QuantConnect.Algorithm.Framework.Alphas.Serialization.InsightJsonConverter:
[legend]

Protected Member Functions

override SerializedInsight Convert (Insight value)
 Convert the input value to a value to be serialized More...
 
override Insight Convert (SerializedInsight value)
 Converts the input value to be deserialized More...
 
- Protected Member Functions inherited from QuantConnect.Util.TypeChangeJsonConverter< Insight, SerializedInsight >
virtual T Create (Type type, JToken token)
 Creates an instance of the un-projected type to be deserialized More...
 
abstract TResult Convert (T value)
 Convert the input value to a value to be serialized More...
 
abstract T Convert (TResult value)
 Converts the input value to be deserialized More...
 

Additional Inherited Members

- Public Member Functions inherited from QuantConnect.Util.TypeChangeJsonConverter< Insight, SerializedInsight >
override object ReadJson (JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer)
 Reads the JSON representation of the object. More...
 
override void WriteJson (JsonWriter writer, object value, JsonSerializer serializer)
 Writes the JSON representation of the object. More...
 
override bool CanConvert (Type objectType)
 Determines whether this instance can convert the specified object type. More...
 
- Protected Attributes inherited from QuantConnect.Util.TypeChangeJsonConverter< Insight, SerializedInsight >
virtual bool PopulateProperties
 True will populate TResult object returned by Convert(TResult) with json properties More...
 

Detailed Description

Defines how insights should be serialized to json

Definition at line 24 of file InsightJsonConverter.cs.

Member Function Documentation

◆ Convert() [1/2]

override SerializedInsight QuantConnect.Algorithm.Framework.Alphas.Serialization.InsightJsonConverter.Convert ( Insight  value)
protected

Convert the input value to a value to be serialized

Parameters
valueThe input value to be converted before serialization
Returns
A new instance of TResult that is to be serialized

Definition at line 31 of file InsightJsonConverter.cs.

◆ Convert() [2/2]

override Insight QuantConnect.Algorithm.Framework.Alphas.Serialization.InsightJsonConverter.Convert ( SerializedInsight  value)
protected

Converts the input value to be deserialized

Parameters
valueThe deserialized value that needs to be converted to T
Returns
The converted value

Definition at line 41 of file InsightJsonConverter.cs.

Here is the call graph for this function:

The documentation for this class was generated from the following file: