Class ResponsesTextFormatJsonObject

java.lang.Object
com.azure.ai.openai.responses.models.ResponsesTextFormat
com.azure.ai.openai.responses.models.ResponsesTextFormatJsonObject
All Implemented Interfaces:
com.azure.json.JsonSerializable<ResponsesTextFormat>

public final class ResponsesTextFormatJsonObject extends ResponsesTextFormat
The ResponsesTextFormatJsonObject model.
  • Constructor Details

    • ResponsesTextFormatJsonObject

      public ResponsesTextFormatJsonObject()
      Creates an instance of ResponsesTextFormatJsonObject class.
  • Method Details

    • getType

      public ResponsesTextFormatType getType()
      Get the type property: The type property.
      Overrides:
      getType in class ResponsesTextFormat
      Returns:
      the type value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ResponsesTextFormat>
      Overrides:
      toJson in class ResponsesTextFormat
      Throws:
      IOException
    • fromJson

      public static ResponsesTextFormatJsonObject fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ResponsesTextFormatJsonObject from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ResponsesTextFormatJsonObject if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ResponsesTextFormatJsonObject.