# ChatGptAccountAnalyticsConverter

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

Class 

`IntelligenceX.OpenAI.Usage`

**Namespace**

`IntelligenceX.OpenAI.Usage`

**Assembly**

`IntelligenceX`

**Source**

[ChatGptAccountAnalytics.cs:58](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Usage/ChatGptAccountAnalytics.cs#L58)

**Base**

`JsonConverter<ChatGptAccountAnalytics>`

**Modifiers**

sealed

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

## Inheritance

- JsonConverter<[ChatGptAccountAnalytics](/api/intelligencex-openai-usage-chatgptaccountanalytics/)>
- ChatGptAccountAnalyticsConverter

Filter members 

Show inherited

## Constructors

`public ChatGptAccountAnalyticsConverter()` [#](#constructor-ctor)

[ChatGptAccountAnalytics.cs:58](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Usage/ChatGptAccountAnalytics.cs#L58)

Initializes the converter for reflection or source-generated serialization.

## Methods

`public override ChatGptAccountAnalytics? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)` [#](#method-read-text-json-utf8jsonreader-type-text-json-jsonserializeroptions)

[ChatGptAccountAnalytics.cs:61](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Usage/ChatGptAccountAnalytics.cs#L61)

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)` [#](#method-write-text-json-utf8jsonwriter-intelligencex-openai-usage-chatgptaccountanalytics-text-json-jsonserializeroptions)

[ChatGptAccountAnalytics.cs:68](https://github.com/EvotecIT/IntelligenceX/blob/master/IntelligenceX/Providers/OpenAI/Usage/ChatGptAccountAnalytics.cs#L68)

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.

## Inherited Methods

`public override bool CanConvert(Type typeToConvert)` [#](#method-canconvert-type)

Inherited from JsonConverter<T>[[[ChatGptAccountAnalytics](/api/intelligencex-openai-usage-chatgptaccountanalytics/), IntelligenceX, Version=0, Culture=neutral, PublicKeyToken=null]]

Parameters

**typeToConvert Type required**

Returns

`bool`

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual ChatGptAccountAnalytics ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)` [#](#method-readaspropertyname-utf8jsonreader-type-jsonserializeroptions)

Inherited from JsonConverter<T>[[[ChatGptAccountAnalytics](/api/intelligencex-openai-usage-chatgptaccountanalytics/), IntelligenceX, Version=0, Culture=neutral, PublicKeyToken=null]]

Parameters

**reader Utf8JsonReader required**

**typeToConvert Type required**

**options JsonSerializerOptions required**

Returns

`ChatGptAccountAnalytics`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

`public virtual void WriteAsPropertyName(Utf8JsonWriter writer, ChatGptAccountAnalytics value, JsonSerializerOptions options)` [#](#method-writeaspropertyname-utf8jsonwriter-chatgptaccountanalytics-jsonserializeroptions)

Inherited from JsonConverter<T>[[[ChatGptAccountAnalytics](/api/intelligencex-openai-usage-chatgptaccountanalytics/), IntelligenceX, Version=0, Culture=neutral, PublicKeyToken=null]]

Parameters

**writer Utf8JsonWriter required**

**value ChatGptAccountAnalytics required**

**options JsonSerializerOptions required**

## Inherited Properties

`public virtual bool HandleNull { get; }` [#](#property-handlenull)

Inherited from JsonConverter<T>[[[ChatGptAccountAnalytics](/api/intelligencex-openai-usage-chatgptaccountanalytics/), IntelligenceX, Version=0, Culture=neutral, PublicKeyToken=null]]

`public override sealed Type Type { get; }` [#](#property-type)

Inherited from JsonConverter<T>[[[ChatGptAccountAnalytics](/api/intelligencex-openai-usage-chatgptaccountanalytics/), IntelligenceX, Version=0, Culture=neutral, PublicKeyToken=null]]

<!-- PowerForge markdown artifact sha256:0B44C343C360CFBE3DA97C63CD1B0A97F37AE0CE1419852BF1EA41D36D5D521A -->
