Definition
Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.FaviconConfig>Syntax
Summary
Custom JSON converter for FaviconConfig that supports both string and object formats.Constructors
.ctor
Syntax
Methods
Read
Reads and converts the JSON to a FaviconConfig object.Syntax
Parameters
Name | Type | Description |
---|---|---|
reader | System.Text.Json.Utf8JsonReader | The JSON reader. |
typeToConvert | System.Type | The type to convert to. |
options | System.Text.Json.JsonSerializerOptions | The serializer options. |
Returns
Type:Mintlify.Core.Models.FaviconConfig?
A FaviconConfig object.
Write
Writes a FaviconConfig object as JSON.Syntax
Parameters
Name | Type | Description |
---|---|---|
writer | System.Text.Json.Utf8JsonWriter | The JSON writer. |
value | Mintlify.Core.Models.FaviconConfig | The FaviconConfig object to write. |
options | System.Text.Json.JsonSerializerOptions | The serializer options. |