DecodeOptions class

Options for decoding from TOON format.

Constructors

DecodeOptions({int indent = 2, bool strict = true, bool enforceFlatMap = false, String flatMapSeparator = '_'})
const

Properties

enforceFlatMap bool
Whether to unflatten flat map keys back into nested objects (default: false). When true, flat keys are converted back to nested objects using flatMapSeparator. Example: {'a_b': 'x'} becomes {'a': {'b': 'x'}} with separator '_'.
final
flatMapSeparator String
Separator used when unflattening flat map keys (default: '_'). Only used when enforceFlatMap is true.
final
hashCode int
The hash code for this object.
no setterinherited
indent int
Expected number of spaces per indentation level (default: 2).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strict bool
Enable strict validation (default: true).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve() → ResolvedDecodeOptions
Resolves decode options with defaults.
toString() String
A string representation of this object.
inherited

Operators

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