ChartConfigValidator class

Constructors

ChartConfigValidator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

diffPayloads(Object? raw, Object? normalized, {int maxInlineLength = 56}) List<PayloadDiff>
Return changed JSON paths between raw and normalized.
normalizeDataCollectionPayload(Map<String, dynamic> json) Map<String, dynamic>
Normalize shorthand collection payloads into the series shape expected by chart config factories, without removing the original shorthand fields.
normalizePayload(Map<String, dynamic> json, {bool dropUnsupportedSampling = true, int? defaultThreshold, ChartDataMode defaultMode = ChartDataMode.auto, bool sanitizeTradingPayload = true, PayloadNormalizationOptions? options}) Map<String, dynamic>
Normalize both sampling/data-mode and trading payload shapes.
normalizePayloadWithReport(Map<String, dynamic> json, {bool dropUnsupportedSampling = true, int? defaultThreshold, ChartDataMode defaultMode = ChartDataMode.auto, bool sanitizeTradingPayload = true, int maxInlineLength = 56, PayloadNormalizationOptions? options}) PayloadNormalizationResult
Normalize payload and include a diff report for diagnostics/tooling.
normalizeSamplingPayload(Map<String, dynamic> json, {bool dropUnsupportedSampling = true, int? defaultThreshold, ChartDataMode defaultMode = ChartDataMode.auto, PayloadNormalizationOptions? options}) Map<String, dynamic>
Normalize payload sampling/data mode into canonical and safe values.
normalizeTradingPayload(Map<String, dynamic> json) Map<String, dynamic>
Normalize trading payloads used by kagi, renko, and macd.
validate(BaseChartConfig config) ValidationResult
Validate config and return a ValidationResult.
validateJson(Map<String, dynamic> json) List<String>
Backward-compatible raw JSON validation helper.
validateJsonPayload(Map<String, dynamic> json, {bool deep = true, bool requireRegisteredType = false}) ValidationResult
Validate raw JSON payload before/after parsing.