API Reference
Class
ChatGptAccountAnalyticsConverter
Preserves provider field names and unknown measurements in JSON and source-generated protocol consumers.
Inheritance
- JsonConverter<ChatGptAccountAnalytics>
- ChatGptAccountAnalyticsConverter
Constructors
public ChatGptAccountAnalyticsConverter() #Initializes the converter for reflection or source-generated serialization.
Methods
public override ChatGptAccountAnalytics? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
ChatGptAccountAnalytics?Reads and converts the JSON to type T.
Parameters
- reader System.Text.Json.Utf8JsonReader
- The reader.
- typeToConvert System.Type
- The type to convert.
- options System.Text.Json.JsonSerializerOptions
- An object that specifies serialization options to use.
Returns
The converted value.
public override Void Write(Utf8JsonWriter writer, ChatGptAccountAnalytics value, JsonSerializerOptions options) #Returns:
VoidWrites a specified value as JSON.
Parameters
- writer System.Text.Json.Utf8JsonWriter
- The writer to write to.
- value IntelligenceX.OpenAI.Usage.ChatGptAccountAnalytics
- The value to convert to JSON.
- options System.Text.Json.JsonSerializerOptions
- An object that specifies serialization options to use.
Inherited Methods
public override Boolean CanConvert(Type typeToConvert) #Returns:
BooleanInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- typeToConvert Type
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
public virtual ChatGptAccountAnalytics ReadAsPropertyName(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) #Returns:
ChatGptAccountAnalyticsInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- reader Utf8JsonReader
- typeToConvert Type
- options JsonSerializerOptions
public virtual Void WriteAsPropertyName(Utf8JsonWriter writer, ChatGptAccountAnalytics value, JsonSerializerOptions options) #Returns:
VoidInherited from 0, Culture=neutral, PublicKeyToken=null]]
Parameters
- writer Utf8JsonWriter
- value ChatGptAccountAnalytics
- options JsonSerializerOptions