JsonValueNormalizer class abstract final

Converts arbitrary diagnostic values into structures accepted by JSON encoders while preserving maps and iterables.

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

diagnosticDescriptor(Object value) → String
Returns a stable diagnostic type-family label without invoking virtual members on value.
normalize(Object? value, {int maxDepth = 500, int maxNodes = defaultMaxNodes, int maxCollectionItems = defaultMaxCollectionItems, bool preserveTypes = false, bool allowCustomSerialization = false, bool stringifyUnknown = false}) → Object?
Returns a JSON-safe snapshot of value.

Constants

circularReference → const String
Replacement emitted when a map or iterable refers to an ancestor.
defaultMaxCollectionItems → const int
Default maximum number of entries retained from one map or iterable.
defaultMaxNodes → const int
Default maximum number of values visited in one normalization pass.
maxCollectionItemsReached → const String
Replacement emitted when one collection exceeds its item budget.
maxDepthReached → const String
Replacement emitted when traversal reaches normalize's depth limit.
maxNodesReached → const String
Replacement emitted when traversal reaches its total node budget.
traversalMarkerKey → const String
Key used to retain a traversal marker when a map is truncated.
unprintableValue → const String
Replacement emitted when a diagnostic value cannot be inspected safely.