Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.FaviconConfig>

Syntax

Mintlify.Core.Models.FaviconConfigJsonConverter

Summary

Custom JSON converter for FaviconConfig that supports both string and object formats.

Constructors

.ctor

Syntax

public FaviconConfigJsonConverter()

Methods

Read

Reads and converts the JSON to a FaviconConfig object.

Syntax

public override Mintlify.Core.Models.FaviconConfig Read(ref System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert, System.Text.Json.JsonSerializerOptions options)

Parameters

NameTypeDescription
readerSystem.Text.Json.Utf8JsonReaderThe JSON reader.
typeToConvertSystem.TypeThe type to convert to.
optionsSystem.Text.Json.JsonSerializerOptionsThe serializer options.

Returns

Type: Mintlify.Core.Models.FaviconConfig? A FaviconConfig object.

Write

Writes a FaviconConfig object as JSON.

Syntax

public override void Write(System.Text.Json.Utf8JsonWriter writer, Mintlify.Core.Models.FaviconConfig value, System.Text.Json.JsonSerializerOptions options)

Parameters

NameTypeDescription
writerSystem.Text.Json.Utf8JsonWriterThe JSON writer.
valueMintlify.Core.Models.FaviconConfigThe FaviconConfig object to write.
optionsSystem.Text.Json.JsonSerializerOptionsThe serializer options.