MetadataOverrideConverter
Namespace: LLama.Abstractions
A JSON converter for MetadataOverride
public class MetadataOverrideConverter : System.Text.Json.Serialization.JsonConverter`1[[LLama.Abstractions.MetadataOverride, LLamaSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]
Inheritance Object → JsonConverter → JsonConverter<MetadataOverride> → MetadataOverrideConverter
Properties
HandleNull
public bool HandleNull { get; }
Property Value
Constructors
MetadataOverrideConverter()
public MetadataOverrideConverter()
Methods
Read(Utf8JsonReader&, Type, JsonSerializerOptions)
public MetadataOverride Read(Utf8JsonReader& reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
reader
Utf8JsonReader&
typeToConvert
Type
options
JsonSerializerOptions
Returns
Write(Utf8JsonWriter, MetadataOverride, JsonSerializerOptions)
public void Write(Utf8JsonWriter writer, MetadataOverride value, JsonSerializerOptions options)
Parameters
writer
Utf8JsonWriter
value
MetadataOverride
options
JsonSerializerOptions