API Reference
Class
IdentityExposureChartModelJson
Serializes identity exposure chart models for renderer-neutral consumers such as ChartForgeX.
Inheritance
- Object
- IdentityExposureChartModelJson
Methods
public static JsonSerializerOptions CreateOptions(Boolean indented = true) #Returns:
JsonSerializerOptionsCreates JSON serializer options used by identity exposure chart exports.
Parameters
- indented System.Boolean = true
- Whether to write indented JSON.
Returns
Serializer options with camel-case property names.
public static String ToJson(IdentityExposureChartModel model, Boolean indented = true) #Returns:
StringSerializes a chart model to JSON.
Parameters
- model ADPlayground.IdentityExposure.IdentityExposureChartModel
- Chart model to serialize.
- indented System.Boolean = true
- 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
- Destination JSON file path.
- model ADPlayground.IdentityExposure.IdentityExposureChartModel
- Chart model to serialize.
- indented System.Boolean = true
- Whether to write indented JSON.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.
Returns
Path that was written.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object