Skip to main content

Definition

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

Syntax

Summary

Handles JSON conversion for primary navigation properties that can be different types of objects.

Remarks

Primary navigation in Mintlify NavbarConfig can be specified as:
  • Object: Button configuration with type, label, and href properties
  • Object: GitHub configuration with type and href properties

Constructors

.ctor

Syntax

Methods

CanConvert Override

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

Syntax

Parameters

Returns

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

Read Override

Reads and converts the JSON to a PrimaryNavigationConfig object.

Syntax

Parameters

Returns

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

Exceptions

Write Override

Writes the PrimaryNavigationConfig object to JSON.

Syntax

Parameters