Skip to content

DefaultConverter

QuantConnect.DefaultConverter

Bases: JsonConverter

Helper json converter to use the default json converter, breaking inheritance json converter

can_read

can_read: bool

Indicates if this object can be read

can_write

can_write: bool

Indicates if this object can be written

can_convert

can_convert(object_type: Type) -> bool

Indicates if the given type can be assigned to this object

read_json

read_json(
    reader: Any,
    object_type: Type,
    existing_value: Any,
    serializer: Any,
) -> Object

Creates an object from a given JSON reader and other arguments

write_json

write_json(
    writer: Any, value: Any, serializer: Any
) -> None

Writes a JSON file from the given object and the other arguments