EncodeOptions class
Options for encoding to TOON format.
Constructors
Properties
- delimiter → String
-
Delimiter for array values and tabular rows (default: ',').
final
- enforceFlatMap → bool
-
Whether to flatten nested objects into a flat map (default: false).
When true, nested objects are converted to flat keys using flatMapSeparator.
Example: {'a': {'b': 'x'}} becomes {'a_b': 'x'} with separator '_'.
final
- flatMapSeparator → String
-
Separator to use when flattening nested objects (default: '_').
Only used when enforceFlatMap is true.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- indent → int
-
Number of spaces per indentation level (default: 2).
final
- lengthMarker → String?
-
Optional marker to prefix array lengths (default: null).
Set to '#' to enable length marker.
final
- 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
-
resolve(
) → ResolvedEncodeOptions - Resolves encode options with defaults.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited