Skip to main content

Definition

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

Syntax

Summary

Handles JSON conversion for icon properties that can be either strings or objects.

Remarks

Icons in Mintlify can be specified as:
  • String: Simple icon name (e.g., “folder”, “home”)
  • Object: Icon configuration with name, style, and library properties

Constructors

.ctor

Syntax

.ctor Inherited

Inherited from System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.IconConfig>

Syntax

.ctor Inherited

Inherited from object

Syntax

Properties

HandleNull Inherited Virtual

Inherited from System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.IconConfig>

Syntax

Property Value

Type: bool

Type Override

Inherited from System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.IconConfig>

Syntax

Property Value

Type: System.Type

Type Inherited Abstract

Inherited from System.Text.Json.Serialization.JsonConverter

Syntax

Property Value

Type: System.Type?

Methods

CanConvert Override

Determines whether the specified type can be converted by this converter.

Syntax

Parameters

Returns

Type: bool True if the type is IconConfig; otherwise, false.

CanConvert Override

Inherited from System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.IconConfig>

Syntax

Parameters

Returns

Type: bool

CanConvert Inherited Abstract

Inherited from System.Text.Json.Serialization.JsonConverter

Syntax

Parameters

Returns

Type: bool

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

Read Override

Reads and converts the JSON to an IconConfig object.

Syntax

Parameters

Returns

Type: Mintlify.Core.Models.IconConfig? An IconConfig for both simple icon names and complex icon configurations.

Exceptions

Read Inherited Abstract

Inherited from System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.IconConfig>

Syntax

Parameters

Returns

Type: Mintlify.Core.Models.IconConfig?

ReadAsPropertyName Inherited Virtual

Inherited from System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.IconConfig>

Syntax

Parameters

Returns

Type: Mintlify.Core.Models.IconConfig

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?

Write Override

Writes the IconConfig object to JSON.

Syntax

Parameters

Write Inherited Abstract

Inherited from System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.IconConfig>

Syntax

Parameters

WriteAsPropertyName Inherited Virtual

Inherited from System.Text.Json.Serialization.JsonConverter<Mintlify.Core.Models.IconConfig>

Syntax

Parameters