Show / Hide Table of Contents

Class ToolChoicesConverter

Inheritance
object
JsonConverter
JsonConverter<ToolChoices>
ToolChoicesConverter
Inherited Members
JsonConverter<ToolChoices>.CanConvert(Type)
JsonConverter<ToolChoices>.ReadAsPropertyName(ref Utf8JsonReader, Type, JsonSerializerOptions)
JsonConverter<ToolChoices>.WriteAsPropertyName(Utf8JsonWriter, ToolChoices, JsonSerializerOptions)
JsonConverter<ToolChoices>.HandleNull
JsonConverter<ToolChoices>.Type
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: CycloneDX.Json.Converters
Assembly: CycloneDX.Core.dll
Syntax
public class ToolChoicesConverter : JsonConverter<ToolChoices>

Methods

| Edit this page View Source

Read(ref Utf8JsonReader, Type, JsonSerializerOptions)

Reads and converts the JSON to type ToolChoices.

Declaration
public override ToolChoices Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonReader reader

The reader.

Type typeToConvert

The type to convert.

JsonSerializerOptions options

An object that specifies serialization options to use.

Returns
Type Description
ToolChoices

The converted value.

Overrides
JsonConverter<ToolChoices>.Read(ref Utf8JsonReader, Type, JsonSerializerOptions)
| Edit this page View Source

Write(Utf8JsonWriter, ToolChoices, JsonSerializerOptions)

Writes a specified value as JSON.

Declaration
public override void Write(Utf8JsonWriter writer, ToolChoices value, JsonSerializerOptions options)
Parameters
Type Name Description
Utf8JsonWriter writer

The writer to write to.

ToolChoices value

The value to convert to JSON.

JsonSerializerOptions options

An object that specifies serialization options to use.

Overrides
JsonConverter<ToolChoices>.Write(Utf8JsonWriter, ToolChoices, JsonSerializerOptions)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX