TestimoX

API Reference

Class

IdentityExposureChartModelJson

Namespace ADPlayground.IdentityExposure
Assembly ADPlayground
Modifiers static

Serializes identity exposure chart models for renderer-neutral consumers such as ChartForgeX.

Inheritance

  • Object
  • IdentityExposureChartModelJson

Methods

public static JsonSerializerOptions CreateOptions(Boolean indented = true) #
Returns: JsonSerializerOptions

Creates JSON serializer options used by identity exposure chart exports.

Parameters

indented System.Boolean = true optionalposition: 0
Whether to write indented JSON.

Returns

Serializer options with camel-case property names.

public static String ToJson(IdentityExposureChartModel model, Boolean indented = true) #
Returns: String

Serializes a chart model to JSON.

Parameters

model ADPlayground.IdentityExposure.IdentityExposureChartModel requiredposition: 0
Chart model to serialize.
indented System.Boolean = true optionalposition: 1
Whether to write indented JSON.

Returns

JSON payload.

public static async Task<String> WriteJsonAsync(String path, IdentityExposureChartModel model, Boolean indented = true, CancellationToken cancellationToken = null) #
Returns: Task<String>

Writes a chart model JSON payload to disk.

Parameters

path System.String requiredposition: 0
Destination JSON file path.
model ADPlayground.IdentityExposure.IdentityExposureChartModel requiredposition: 1
Chart model to serialize.
indented System.Boolean = true optionalposition: 2
Whether to write indented JSON.
cancellationToken System.Threading.CancellationToken = null optionalposition: 3
Cancellation token.

Returns

Path that was written.