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