IntelligenceX
Class

ChatGptAccountAnalyticsConverter

IntelligenceX.OpenAI.Usage

Namespace
IntelligenceX.OpenAI.Usage
Assembly
IntelligenceX
Base
JsonConverter<ChatGptAccountAnalytics>
Modifiers
sealed

Preserves provider field names and unknown measurements in JSON and source-generated protocol consumers.

Inheritance

Constructors

public ChatGptAccountAnalyticsConverter() #

Initializes the converter for reflection or source-generated serialization.

Methods

public override ChatGptAccountAnalytics? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #

Reads and converts the JSON to type T.

Parameters

reader System.Text.Json.Utf8JsonReader required
The reader.
typeToConvert System.Type required
The type to convert.
options System.Text.Json.JsonSerializerOptions required
An object that specifies serialization options to use.

Returns

ChatGptAccountAnalytics? The converted value.
public override void Write(Utf8JsonWriter writer, ChatGptAccountAnalytics value, JsonSerializerOptions options) #

Writes a specified value as JSON.

Parameters

writer System.Text.Json.Utf8JsonWriter required
The writer to write to.
value IntelligenceX.OpenAI.Usage.ChatGptAccountAnalytics required
The value to convert to JSON.
options System.Text.Json.JsonSerializerOptions required
An object that specifies serialization options to use.